Asp.net Treeview Control
-
Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap
-
Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap
-
Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap
Easier said than done. You really should just drop one down on your webform and play around with it first, and work on the CSS you need to style it, then load it up with your data, and write code for expand and collapse. The treeview is pretty complicated, and doesn't really work very well across all browsers, so it requires some browser detection and some tweaking for each node and child nodes. So for IE, the text on the nodes read clear, but on firefox, the text is very fine, but perhaps it depends on your monitor or video card. As for right clicks, I tried that and decided thar the work required to enable right clicks outweighed the use of them. Then you have to determine which node or child node was selected, and what the object type is to take action to. You really need to write your own code, or google for sample code instead of asking us to google for you. I use it to show files in a folder by file type, and place the appropriate icon next to the file type. So I do a folder read, and create nodes in code without binding. Binding Binding Data With ‘TreeView’ Control Asp.net 2.0[^] Right Clicks http://generally.wordpress.com/2007/11/06/right-click-on-treeview-get-the-node-clicked-at/[^]
-
Hi, Please help me in Asp.Net Tree view Control. I want full coding in code behind. How to Bind the data with treeview using store procedure. Also I want to show Right click funtionalilty(Context menu) in code behind or in Java script. Also I want to use command expand functionality in my coding. Earlier I was using IE-Web Control which was supporting only IE browser . Now I want to use this code with all browser compatibility. Kindly help me on this asap
Have you checked MSDN? They have sample code to look through. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx[^]