i made it work by setting the paging mode to rootLevelOnly because then i can see all the rows how could i turn off paging when i am in my
expand all method and turn it back on after i am finished i found a way to turn it off by calling
$('#TreeGrid').igTreeGridPaging('destroy');but i can't turn it back on after
Hello, ya Benatar,Thank you for reaching out to Infragistics!I've composed a fiddle example of how to expand/collapse all rows with paging in place. When time permits, please take a look and let me know if that helps you with what you're trying to do.You can also refer to this thread on how to get all rows when paging is in place and subsequently re-render paging.Hope this helps!
well it did what i already acheived it expends all the visibleRows but i was wondering if there was a way to expend all the rows from all the pages and the thread you linked to would need me to recreate the grid after i am done expanding then i might as well change the initialExpandDepth value to -1
Hi Ya Benatar,
The treeGrid allRows method returns all of the rows that are currently loaded in the grid. If pagination is in in place, it will return all of the rows on that page.
If you want to expand all of the treeGrid rows, you can set the pagination pageSize option to the whole data set (so all rows are on the current page) and call expand row on all of them.
If you don't want pagination in place when all rows are expanded, leave the pageSize = dataSource.length. If you want to return the pagination (either in the collapse method or elsewhere), set the pagination page size to the initial value:set max pageSize:igTreeGridPaging("option","pageSize",$("#treegrid").igTreeGrid("option", "dataSource").length);
reset pageSize:igTreeGridPaging("option","pageSize",initialValue);Hope this helps!
yes that's a good solution it works very well thanks
Hi ya Benatar,
I'm glad to hear that the solution works for you, thanks for confirming!In case you need information about or help with anything else, please don't hesitate to contact us again.Best Regards,Viktor