About create a button to expand and collapse all in pivot table

By set  expandAll: false or true. Simplify I created a button to do this but when I have many column and row the pivot table reload by the lagging way or sometime crash the application for a little time.
Futher when I expand only one column by my hand then click button to expand all then click to collapse all so this column could not collapse. It not synchronized
I need your help
version used 19.1.65

3 Replies 1 reply marked as answer

ME Mouli Eswararao Syncfusion Team June 17, 2021 04:22 AM UTC

Hi Swagger 

Greetings from Syncfusion support. 

The drilledMember option always works in vice-versa with respect to the property expandAll in pivot table. For example, if expandAll is set to true, then the member(s) added in items collection alone will be in collapsed state. If you want to expand all items in the fields then you can empty the drillmember collection before expand all or collapse all button click. We have prepared a sample for you please find it below. 



Please let us know if you have any other queries, we are happy to assist you. 

Regards,
Mouli 


Marked as answer

SW Swagger June 18, 2021 02:20 AM UTC

Thanks you, really helpful


ME Mouli Eswararao Syncfusion Team June 18, 2021 01:47 PM UTC

Hi Swagger, 

Thanks for the update. 

Regards,
Mouli  


Loader.
Up arrow icon