I have three questions regarding the jQuery tree. I am using MVC3 and razor.
I have set up the tree using code in the controller:
TreeModel treeModel1 = new TreeModel();treeModel1.ID = "TreeInController1";// Configure data sourcetreeModel1.DataSource = col1;
// Configure specific display and interraction propertiestreeModel1.LoadOnDemand = true;treeModel1.DataSourceUrl = Url.Action("TreeGetData");treeModel1.CheckboxMode = CheckboxMode.TriState;treeModel1.SingleBranchExpand = true;treeModel1.ParentNodeImageUrl = "Computer.png";treeModel1.LeafNodeImageUrl = "Computer.png";
// Define bindingstreeModel1.Bindings = new TreeBindings();treeModel1.Bindings.TextKey = "Name";treeModel1.Bindings.PrimaryKey = "StateId";treeModel1.Bindings.ValueKey = "StateId";//treeModel1.Bindings.ImageUrlKey = "ImageUrl";treeModel1.Bindings.ChildDataProperty = "Courts";
1) How do you set the child leaves Bindings using code in the controller?
2) How do you change the icon of a distinct leaf item using code in the controller?
3) How do you return the selected items to the controller?