jQuery UI Widgets Forums Grid Different rowdetails height on each row

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Different rowdetails height on each row #31193

    rufs
    Participant

    I have a nested grid and want to get the height of the subgrids to vary according to number of dataset rows in order to prevent vertcal scrolling in subgrids.

    I found a solution by setting each rowdetails with in the desired height, in the bindingcomplete event, like shown beneath.
    The problem with this solution, is that it makes redering of the grid extremely slow (say you have 100 rows).

    Is there a better way to set different rowdetails height?

    $(grid).bind(‘bindingcomplete’, function (event) {
    if (event.target.id == name && rowDetailsCount >= 0) {
    $(id).jqxGrid(‘beginupdate’);
    var datainformation = $(id).jqxGrid(‘getdatainformation’);
    for (i = 0; i < datainformation.rowscount; i++) {
    var detailsRowHeight = 25;
    var detailsHeaderHeight = 25;
    var factor = 0.15;
    var height = ((detailsRowHeight + factor) * rowDetailsCount) + detailsHeaderHeight;

    $(grid).jqxGrid('setrowdetails', i, "

    “, height, true);
    }
    $(id).jqxGrid(‘endupdate’);
    }
    });

    Different rowdetails height on each row #31236

    Dimitar
    Participant

    Hello rufs,

    Unfortunately, setting the height of the row details dynamically is not supported by jqxGrid.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.