Dynamic load children in tree grid

How do i get expand icon and event event when the childMapping key in empty.
I dont want to use datasource: {result: []} method.

1 Reply 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team November 26, 2020 12:53 PM UTC

Hi Ashok, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: How do i get expand icon and event when the childMapping key in empty. 
 
From your query and code we suspect that you are using Custom Data Binding. While using Custom Data Binding, we can set “hasChildMapping” of parent records to true for rendering expand icon. On clicking the expand icon, dataStateChange  event will be triggered and we can bind child data to the parent in that event. We have already discussed the same in our below help documentation, 
 
If the above solution does not meet your requirement, kindly share us the below details, 
  1. Kindly explain your requirement in detail with exact scenario and dummy data similar to your actual data
  2. Share us your complete Tree Grid rendering code.
  3. Share us video demo of your requirement/issue and screenshot of error with complete stack trace (if any)
 
Regards, 
Padmavathy Kamalanathan 


Marked as answer
Loader.
Up arrow icon