You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here you can see that for time being if id:1 with the title: Birds, and again their children with id:1 with the title 'Parrot', I have done manually since In my project I am using dynamic data that is coming from the backend. And If I am giving setSelection(['1']), then it is only selected the parent but In my case, I want to select always their child. And Parent is no more selected.
How I can achieve this? It is a great help.
The text was updated successfully, but these errors were encountered:
I had a similar situation, except I had no data IDs, so I just created this setSelectionByText method, which takes a list of the text strings you would find in each level of hierarchy. So in your case, to select Parrot you would pass setSelectionByText(['Birds', 'Parrot'])
I have only been testing this for an hour or so... so it might have bugs or corner-cases I didn't code for.
Please see the attached sample data for the understanding purpose:-
Here you can see that for time being if id:1 with the title: Birds, and again their children with id:1 with the title 'Parrot', I have done manually since In my project I am using dynamic data that is coming from the backend. And If I am giving
setSelection(['1'])
, then it is only selected the parent but In my case, I want to select always their child. And Parent is no more selected.How I can achieve this? It is a great help.
The text was updated successfully, but these errors were encountered: