jQWidgets Forums

jQuery UI Widgets Forums Grid Add customize link to grid

This topic contains 4 replies, has 3 voices, and was last updated by  Peter Stoev 10 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Add customize link to grid #5415

    buddhika
    Member

    Hi,

    I’m using your jqxgrid. Its wonderful. I want to add link to each row in PHP INTEGRATION. ex: delete link. How can i add this link to grid.

    Thanks.

    Add customize link to grid #5438

    Peter Stoev
    Keymaster

    Hi buddhika,

    To add a link to the Grid, take a look at this sample:customcolumn.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Add customize link to grid #67819

    tome_favre
    Participant

    Hello,

    I have to create a link with a customized url like this:

    var source ={
                    datatype: "json",
                    datafields: [
                        { name: 'operador' },
                        { name: 'qtd' },
                        { name: 'id_operador' }
                    ],                    
                    id: 'arr_cat_pimenta',
                    url: 'consultas/data_cat_subcat.php?resultado=1'
                };
                $("#table_fp_nc").jqxGrid({
                    width: "100%",
                    autoheight : true,
                    source: source,
                    theme: '',
                    columns: [
                        { text: 'Analista', datafield: 'operador', width: 143},//, width: 131 '\u00c1rea'
    					{ text: 'Quantidade', datafield: 'qtd',cellsrenderer: '<a href=\"16.php?nome=' + operador + '&id_operador=' + id_operador + ' class="link-opaco">' + qtd + '</a>'
    					}]
                    ,
                    sortable: true
                });

    Can you help me please?

    Add customize link to grid #67820

    tome_favre
    Participant

    Continuing:

    { text: ‘Quantidade’, datafield: ‘qtd’,cellsrenderer: ‘‘ + qtd + ‘
    }]

    Add customize link to grid #67836

    Peter Stoev
    Keymaster

    Hi tome_favre,

    Please, look at the sample I sent you. It demonstrates how to create column with links. cellsrenderer expects function, not String.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.