All of your examples don't show me how to load the TreeList with data from a specified ParentId. Correct me if I'm wrong, but I believe this is the load order (MVC):
- Call the Controller Index method to load the View.
- View is loaded then the TreeList is initialized which begins the Binding.
- Binding calls the TreeList.Read() method to get the hierarchy data (From the GroupsController, AllJson method in my case)
My read definition looks like this:
.Read(read => read.Action("AllJson", "Groups"))
My problem is I don't see where it lets me specify which root node I want it to initialize the Read from. If I have 200 Hierarchies and I want #134 loaded into the TreeList how do I specify that?
Also, I must load a Hierarchy based on a person's authorization. That may mean that they are only able to see a branch from a Hierarchy. How do I accomplish this?
It would make sense to pass the index of a parent node something like this (not real):
Read(read => read.Action("AllJson", "Groups", ViewBag.ParentId))
Thanks in advance for your help,
Joel