Skip to content
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

JSON data to tree #11

Open
Umar-Mukhtar opened this issue Mar 21, 2013 · 2 comments
Open

JSON data to tree #11

Umar-Mukhtar opened this issue Mar 21, 2013 · 2 comments

Comments

@Umar-Mukhtar
Copy link

I am unable to load the tree when json data is passed to children object in the model. Why is that?

When
-children: [] and dynamically assign when json data received tree fails.

When
children: [
// { name: "Annabelle", id : '1', isOpen : true,isChecked:true, children : [
// { name: "Arnie", cssClass : 'page', id : '5',isChecked:true, children : [] },
// { name: "Anders", cssClass: 'page', id: '6', isChecked: true, children: [] },
// { name: "Apple", cssClass: 'page', id: '7', isChecked: true, children: [] }
// ]
// }
this works like charm. Why dynamic assignment is not bieng done. Please help

@Umar-Mukhtar
Copy link
Author

Okay, i have been able to bind the json data to model at last, Using the custom binding handler. I need to select the checkboxes from parent to child (all childs), does your library support any of these functionalities. I have grabbed the selectnode event but can't get the selected node hierarchy. Please provide any example

@asif-rahman
Copy link

Umar-Mukhtar can u please share your json code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants