Hey All,
I'm having a lot of trouble adding a tree view to a project I'm working on and need some advise
I have a partial view that is supposed to load a list of categories from this stored procedure
List<spTestResult> CategoryList = DB.spTest().ToList();
Inside the returned result is a table with these Ids:
CategoryID, CategoryName, CategoryParentID
If the CategoryParentID of a folder is equal to the CategoryID of another its supposed to become its child on the treeview.
I'm completely new to MVC and all of the example links i've found Hardcode the values inside the treeview so I have no idea how to add the link between displaying the data and using that stored procedure list I returned earlier.
I imagined I would be using Jquery UI but the examples I found also hard coded all the values.
Can someone give me some pointers on how its supposed to work? I've made a treeview on webforms plenty of times but on Mvc we don't seem to have a treeview control to use in the first place.
Thanks in advance, If you need any more code or I missed anything feel free to tell me, I'm not sure if I covered the issue fully