Click here to Skip to main content
15,850,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to create a treeview structure using jQuery in asp.net mvc3 applicatiopn.

Let me describe my scenario: I have two tables - States and Cities.
Cities has State_ID as foreign key. When I pass the StateId I need to show all the Citie under that States in a tree structure.

Can any help me on this? Thanks for all help in prior.

Thanks,
Sampath Bejugama.
Posted

1 solution

Hi,

Check this[^] article.
You can find example with tree view.

The main idea is to make an object model for your data, fill it with real data and then create JSON structure that can be used to render tree view structure. Check this[^] treeview jQuery plugin.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900