jsTree, JSON and MVC3 objects. How to structure data
问题 I have been playing with JsTree a little and MVC3. I can successfully call MVC3 methods and get back JSON to load a basic JsTree so i can do the very basics. What i don't understand is the more complicated data structure to use mostly to do wait extra data i need on nodes and also getting the tree to act on some of that data. My data is NodeText (string) - text to display ItemStatus (enum) - Used to set colors etc on tree ItemType (enum) - controls what can be dragged and dropped and onto