jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Row Details on Particular rows 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 1 post (of 1 total)