Expand all button toolbar bug

Hi, 

I was looking for the expand all button in the documentation and I found : https://ej2.syncfusion.com/documentation/pivotview/tool-bar/#add-custom-toolbar-item

But the problem is :

  • if a row is opened and I click on collapse/expand, this row will close and the others will open
  • if a row is cloded and I click on collapse/expand, this row will open and the others will close
Is it possible that at the click on collapse/expand, all rows close or open and have the same status (closed or opened) ? Even if somes are opened or closed.


Regards.


4 Replies 1 reply marked as answer

GM Gauthier MAIROT replied to Gauthier MAIROT March 29, 2021 03:39 PM UTC

Hi, 

I was looking for the expand all button in the documentation and I found : https://ej2.syncfusion.com/documentation/pivotview/tool-bar/#add-custom-toolbar-item

But the problem is :

  • if a row is opened and I click on collapse/expand, this row will close and the others will open
  • if a row is cloded and I click on collapse/expand, this row will open and the others will close
Is it possible that at the click on collapse/expand, all rows close or open and have the same status (closed or opened) ? Even if somes are opened or closed.


Regards.


I have found a solution, you can find it here : https://stackblitz.com/edit/vl83nt?file=index.html

I just add : pivotTableObj.dataSourceSettings.drilledMembers = []

Is it a good solution ?


SS Saranya Sivan Syncfusion Team March 30, 2021 10:06 AM UTC

Hi Gauthier, 
  
Thanks for the sample. 
  
Yes, this is the correct solution. Meanwhile, we have modified your sample to achieve the same. Please find the sample in below, 
  
  
Please let us know if you have any concerns. 
  
Regards, 
Saranya Sivan. 
 



GM Gauthier MAIROT March 30, 2021 10:11 AM UTC

Thanks but there is a problem with your link :


Regards.


SS Saranya Sivan Syncfusion Team March 31, 2021 08:17 AM UTC

Hi Gauthier, 
  
Please find the working sample link below, 
  
  
Regards, 
Saranya Sivan. 
 


Marked as answer
Loader.
Up arrow icon