- Home
- Forum
- React - EJ 2
- Always selected row in TreeGrid.
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.
SIGN IN To post a reply.
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,
We suggest you to set primary key for any one of the columns, since we have modified the sample with the help of primary key value.
Please check the below help documentations,
https://ej2.syncfusion.com/react/documentation/api/treegrid#rowselectedPlease get back to us if you need further assistance.
Regards,
Padmavathy Kamalanathan
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
AD adgr
- Mar 21, 2020 05:26 PM UTC
- Mar 25, 2020 03:20 PM UTC