Subgrid Expand ALL

QuestionsSubgrid Expand ALL
achillix asked 5 years ago

Hello
if it is possible put a (toggle)button on the toolbar to expand / collapse all subgrid entries?

Thanks in advance

best wishes

2 Answers
Abu Ghufran answered 5 years ago

Hello,

Sample code here: http://pastebin.com/igHDM6mv
Screenshot: http://tinyurl.com/mkmwo8z

var rowIds = jQuery("#list1").getDataIDs();

if ( ! jQuery(document).data('expandall') )
{
jQuery.each(rowIds, function (index, rowId) { jQuery("#list1").expandSubGridRow(rowId); });
jQuery(document).data('expandall',1);
}
else
{
jQuery.each(rowIds, function (index, rowId) { jQuery("#list1").collapseSubGridRow(rowId); });
jQuery(document).data('expandall',0);
}

achillix answered 5 years ago

Hi Abu,
it works like a charm!!!

Thank you very much !!!

and best wishes

Your Answer

5 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!