-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing selected items. #42
Comments
Yes, you can update checked property of your TreeviewItem list which you bound it to component. |
If you are changing checked of children by programming, you must update checked of parent yourself. Or you can write a helper to do this and publish your code here. I will be happy for your help. To change checked of All, you can use ViewChild to access to it and change by yourself. Thanks. |
Thanks. I am using older version ^1.2.5 for Angular 4 compatibility with some custom css changes. Following method worked fine for me to uncheck the parent items based on child unCheck programmatically. Added NOTE: |
@leovo2708 This ngx-treeview is really helpful ! But I need to save the list of checked items (its inside a form) and then when I reopen the form , I need those selected items checked . Is there a way to do this ? Right now , i have this , which creates a tree view of the items of type TreeViewIitem[]. |
Hi, Also the values is not coming i am using json like this from the backend. { |
Yeah I tried this but it doesnt effects on parent or child node |
That is this cdRef property is |
Hi, |
Is there any way to get Parent value of selected chidren? |
Is there any possibility to select(check) items programatically - not using control? If there is, please could you explain how, if not - are you planning to add this feature in future?
The text was updated successfully, but these errors were encountered: