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
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);
}
Your Answer