Subgrid Expand ALL

QuestionsSubgrid Expand ALL
achillix asked 11 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 11 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 11 years ago

Hi Abu,
it works like a charm!!!

Thank you very much !!!

and best wishes

Your Answer

6 + 11 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?