Posted 10 October 2022, 2:55 am EST
Hii ,
is there a way to track state of rowOutlines (like what outlines are in expandMode and what outlines are in collapsedMode)
Forums Home / Spread / SpreadJS
Posted by: seshareddy.kamaganiguntla on 10 October 2022, 2:55 am EST
Posted 10 October 2022, 2:55 am EST
Hii ,
is there a way to track state of rowOutlines (like what outlines are in expandMode and what outlines are in collapsedMode)
Posted 11 October 2022, 2:41 am EST
Hi,
You can use the activeSheet.rowOutlines.toJSON() to get the info on row outlines. It contains the info on the collapsed state.
You can refer to the following sample: https://jscodemine.grapecity.com/share/iFbDSYmlA0GFUI17XEIybA/
You can also use the isCollapsed() method to determine whether the range group at the specified index is collapsed.
API References:
isCollapsed method: https://www.grapecity.com/spreadjs/api/classes/GC.Spread.Sheets.Outlines.Outline#iscollapsed
Outline Class: https://www.grapecity.com/spreadjs/api/classes/GC.Spread.Sheets.Outlines.Outline
Regards,
Ankit