jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Column with image link Column with image link #69495

    fsigu
    Participant

    tanks work fine

    in reply to: Column with image link Column with image link #69393

    fsigu
    Participant

    Tanks, but do not work for me, i have this code

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
    <link rel=”stylesheet” href=”jqwidgets/styles/jqx.classic.css” type=”text/css” />
    <script type=”text/javascript” src=”scripts/jquery-1.11.2.min.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxscrollbar.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxmenu.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.selection.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxgrid.filter.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdata.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxlistbox.js”></script>
    <script type=”text/javascript” src=”jqwidgets/jqxdropdownlist.js”></script>
    <script type=”text/javascript”>
    $(document).ready(function () {
    // prepare the data
    var theme = ‘classic’;
    var source =
    {
    datatype: “json”,
    datafields:
    [
    { name: ‘fecha_emision’, type: ‘date’},
    { name: ‘numero_comprobante’, type: ‘string’},
    { name: ‘tipo_comprobante’, type: ‘string’},
    { name: ‘estado_sri’, type: ‘string’},
    { name: ‘autorizacion’, type: ‘string’},
    { name: ‘clave_acceso’, type: ‘string’},
    { name: ‘archivo_xml’, type: ‘string’},
    { name: ‘archivo_pdf’, type: ‘string’}
    ],
    url: ‘lista_comprobantes_data.php’,
    filter: function () {
    // actualizamos la grilla enviando la solicitod al server
    $(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘filter’);
    }
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    // inicio jqxGrid
    $(“#jqxgrid”).jqxGrid(
    {
    width: 800,
    source: dataAdapter,
    theme: theme,
    filterable: true,
    columns:
    [
    { text: ‘Fecha Emision’, datafield: ‘fecha_emision’,cellsformat: ‘d’, width: 120 },
    { text: ‘Numero Comprobante’, datafield: ‘numero_comprobante’, width: 160 },
    { text: ‘Tipo Comprobante’, datafield: ‘tipo_comprobante’, width: 140 },
    { text: ‘Estado’, datafield: ‘estado_sri’, width: 100 },
    { text: ‘Numero de Autorizacion’, datafield: ‘autorizacion’, width: 350 },
    { text: ‘Clave de Acceso’, datafield: ‘clave_acceso’, width: 420 },
    { text: ‘Xml’, datafield: ‘archivo_xml’, width: 50 },
    { text: ‘Pdf’, datafield: ‘archivo_pdf’, width: 50 }
    ]
    });
    });
    </script>
    </head>
    <body class=’default’>
    <center>
    <?php
    echo ‘<div id=”main”>’;
    echo ‘<h2>Consulta de comprobantes electrónicos</h2>’;
    echo ‘Salir‘;
    echo ‘</div>’;
    ?>
    <div id=”jqxgrid”></div>:
    </center>
    </body>
    </html>

    in the columns,
    { text: ‘Xml’, datafield: ‘archivo_xml’, width: 50 },
    { text: ‘Pdf’, datafield: ‘archivo_pdf’, width: 50 }

    i want that show the image, xml.jpg and pdg.jpg, and when the user click over this image the user download the file,
    in the archivo_xml data i have this.
    http://www.dominio.com/comp/fa123.xml

    where should I put the function imagerenderer
    and how i send the value for this column, i am lost
    please help

Viewing 2 posts - 1 through 2 (of 2 total)