Always selected row in TreeGrid.

Hi,

How can I get always selected row in TreeGrid? I don't want deselection of a previously selected row by clicking on it again.
In Grid component I can set selectionSettings.enableToggle = false, but in TreeGrid it doesn't work.


3 Replies

PK Padmavathy Kamalanathan Syncfusion Team March 23, 2020 02:54 PM UTC

Hi adgr, 
  
We have validated the defect you have initiated with us. Currently we do not have "enableToggle" API in TreeGrid SelectionSettings. We will include this API in our upcoming patch release after our 2020 Volume 1 Main release. 

 
Until then we suggest you to refer the below work around sample, 
  
You can track the current status of your request, review the resolution timeline and contact us for any further inquiries through this link.  
https://www.syncfusion.com/feedback/12928/need-to-include-enabletoggle-api-in-selectionsettings
  
Note: To view the above feedback, kindly login into your account. 
  
Disclaimer: The feedback link is in review state and you can check it once it is validated 
  
If you have further queries, please get back to us. 
  
Regards, 
Padmavathy Kamalanathan 



AD adgr March 24, 2020 05:53 PM UTC

Hi,

Your example works.
But when I click the expand icon, the selection is cleared.
Can you modify your example so that clicking the expand icon does not clear selection.


PK Padmavathy Kamalanathan Syncfusion Team March 25, 2020 03:20 PM UTC

Hi adgr,

Thanks for your update.

We have modified the sample as per your requirement. Please check the sample from the below link,


Please get back to us if you need further assistance.

Regards,
Padmavathy Kamalanathan


Loader.
Up arrow icon