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
I want some another scenario when i click on any child then related parent should be checked automatically and it should be pushed in another parent array.
Here is the problem,
Currently when i clicked on child it is automatically checked parent in expand mode,but when i closed expand it is removed from array automatically.
The text was updated successfully, but these errors were encountered:
I apologize for not responding to this earlier, but I had trouble understanding this when I initially saw the issue. I think I understand it now. If I understand you correctly, the intent is to have some way to track which parent nodes have checked children, and you would have liked to use the expanded property to store this information.
Unfortunately, there is no way to do this in the current version. The expanded array serves quite a different purpose. Nevertheless, your use case is very similar to long-standing issue #13, which would only have the uppermost selections in the checked array.
Your use case might be a bit different that what is in #13, but v2.0 might be moving to a slightly different model that would store all of the check state data on the individual nodes themselves, which may provide greater flexibility for your use case, though that will not be ready for a while.
For now, the simplest way to work around the issue for you would be to iterate through the checked array, split each item by the underscore (_), remove the duplicates, and store it in some other variable, say parents. That way you would have ['affiliate', 'offer_type', 'group'].
Hello Everyone
So guys, i have a simple question
I want some another scenario when i click on any child then related parent should be checked automatically and it should be pushed in another parent array.

Here is the problem,
Currently when i clicked on child it is automatically checked parent in expand mode,but when i closed expand it is removed from array automatically.
The text was updated successfully, but these errors were encountered: