SFTreeGrid expand-collapse binding

Hello

How cen I expand or collapse the nodes based on property of underlying data object in SFTreeGrid.

Kind regards

Janusz Bieńkowski


3 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team July 29, 2022 08:08 AM UTC

Hi Janusz Bienkowski,

Your requirement to expand or collapse the nodes based on the property of the underlying data object in SfTreeGrid can be achieved by using SfTreeGrid.ExpandStateMappingName property. For more information related to Expand/Collapse a node based on mapping property, please refer to the below user guide documentation link,


UG Link: https://help.syncfusion.com/wpf/treegrid/data-binding#expandcollapse-a-node-based-on-mapping-property

Please find the sample in the attachment and let us know if you have any concerns in this.


Regards,

Vijayarasan S


Attachment: SfTreeGridDemo_fe2bdd4d.zip

Marked as answer

JB Janusz Bienkowski July 30, 2022 09:25 AM UTC

Thank You. 

That is what was needed.


Regards

Janusz Bieńkowski



VS Vijayarasan Sivanandham Syncfusion Team August 1, 2022 05:41 AM UTC

Hi Janusz Bienkowski,

If you are satisfied with our response, please mark it as an answer. Otherwise, please let us know if you have any further queries on this. We are happy to help you😊.

Regards,

Vijayarasan S


Loader.
Up arrow icon