can the popular javascript tree views (jstree, dynatree…) be setup to read data from an adjacency model?
say I have a table with classId, ClassName,ClassType,ParentClassId how can i fetch data for say the dynatree? considering the json expected by dyna tree should something like below
{title: "Class1"},
{title: "Class2", isFolder: true,
children: [
{title: "Class4"},
{title: "Class5"}
]
},
{title: "Class3"}
I am using an asp.net asmx web service with linq to sql at the backend
The only thing you have to do to have nodes loaded on demand is to add “state” : “closed” to the nodes whose child nodes are going to be loaded on demand.
You can have all your necessary attributes
classId, ClassName,ClassType,ParentClassIdattached to the node so then you can pass it through via ajax.ur code