jQuery UI Widgets Forums Grid Row Details on Particular rows

This topic contains 3 replies, has 3 voices, and was last updated by  rufs 10 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Row Details on Particular rows #31250

    Benji6996
    Participant

    Really simply, is it possible to enable row details on only particular rows within a grid?

    So, if a row has nothing to show in its row details then the row details column is not clickable…

    Row Details on Particular rows #31285

    Dimitar
    Participant

    Hello Benji6996,

    Unfortunately, this functionality cannot be achieved.

    Best Regards,
    Dimitar

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

    Row Details on Particular rows #31292

    Benji6996
    Participant

    No problem, thanks anyway

    Row Details on Particular rows #31454

    rufs
    Participant

    Hi,

    This effect can actually be achieved, by setting up rowdetails in the bindingcomplete event. The code below will enable rowdetails on the second row only.

    $('#grid').bind('bindingcomplete', function (event) {				
    $('#grid').jqxGrid('beginupdate');
    var datainformation = $(id).jqxGrid('getdatainformation');
    for (i = 0; i < datainformation.rowscount; i++) {
    var enableRowDetails = (i == 1)
    if (enableRowDetails) {
    $(#grid).jqxGrid('setrowdetails', i, "<div id='grid" + i + "'></div>", 400, true);
    }
    }
    $(id).jqxGrid('endupdate');
    });

    Though, this routine could make the grid slow to initialize if you have a great amount of rows.

    best regards, rufs

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

You must be logged in to reply to this topic.