jQWidgets Forums

jQuery UI Widgets Forums Grid Rowdetails for all rows

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Rowdetails for all rows #13719

    kiranthunga1
    Member

    Hi Peter,
    Is there a way that I shoe detail for all rows with single statement
    Like $(“#jqxgrid”).jqxGrid(‘showrowdetails’, indexlist);
    $(“#jqxgrid”).jqxGrid(‘hiderowdetails’, indexList);

    where index list is the list of all rows. I have a client who wants a configuration option where he wants to see the details of all rows when the grid loads. Right now I am doing in for loop, It is taking lot of time.

    something like this:

    $(‘#jqxgrid’).unbind(‘rowexpand’, rowExpand);
    for (var i = 0; i < recordCount; i++) {
    $("#jqxgrid").jqxGrid('showrowdetails', i);
    expandedItems[expandedItems.length] = i;
    }
    $('#jqxgrid').bind('rowexpand', rowExpand);
    }

    Rowdetails for all rows #13729

    Peter Stoev
    Keymaster

    Hi kiranthunga1,

    Before the loop, you can do the following:

    $("#jqxgrid").jqxGrid('beginupdate');

    After the loop, call:

    $("#jqxgrid").jqxGrid('endupdate');

    I will also create a work item about expanding all rows by default and we will implement that functionality in the future versions.

    Best Regards,
    Peter Stoev

    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.