Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi all,

I need a single level Tree control code or single level menu with add,edit,delete option.

It can be in any of the following languages.
c#(asp.net), jquery, javascript, vb.net, silverlight(last option)

Please help me as soon as possible.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Nov-11 2:44am    
Why Tree if you need only 1 level. A single-level tree is a list.
--SA
Manjunathmh 25-Nov-11 4:06am    
I need it's look and feel should be like a tree control.

1 solution

You can get a solution using one or more of the languages, but such question makes no sense at all, as the answer can be really unusable in practice. I cannot see that you know what do you want, and this would highly discourage giving you a solution.

This is because some languages can work only on server side only, some on client side only, and Silverlight is a very different platform. If you don't care, it means you don't have a real practical need in answer (school assignment or what?).

I would suggest to avoid answering a question when the answer could not be used. I would be glad if you prove me wrong though, but then you need to explain.

[EDIT]

I'm glad to hear that I was probably wrong about you and you've mastered a good bunch of languages and technologies. Still, the fact that you don't even express any preferences on which side you want to implement things, client or server, makes me doubt.

As I say, single-level tree view is a list view or a list box. So, you still can use TreeView, see but a simple ListBox will be good enough, too:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listbox.aspx[^].

On client side, I think the maximum flexibility can be obtained with jQuery plug-in solutions. You can find a number of implementations of both tree views and menus. They are usually multi-level, of course, you will just use one level until you need more :-). Please see:

http://docs.jquery.com/Plugins/Treeview[^],
http://www.google.com/url?sa=t&rct=j&q=jQuery+%28menu+OR+treeview%29&source=web&cd=8&ved=0CHMQFjAH&url=http%3A%2F%2Fwww.programmingsolution.net%2Fuseful-js%2Fjquery-treeview.php&ei=kFrZTojlLcPq0gG564nxDQ&usg=AFQjCNEWQjhHsRU6WF44cDShNtcsPArInw[^],
http://plugins.jquery.com/plugin-tags/jquery-menu[^],
http://designm.ag/resources/26-useful-jquery-navigation-menu-tutorials/[^],
http://speckyboy.com/2010/12/01/15-super-simple-jquery-menu-and-navigation-plugins/[^],
http://www.tripwiremagazine.com/2011/03/40-jquery-menu-plugins-and-tutorials-for-better-navigation.html[^].

You can find a log more: http://en.lmgtfy.com/?q=jQuery+(menu+OR+treeview)[^].

Good luck,
—SA
 
Share this answer
 
v6
Comments
Manjunathmh 25-Nov-11 4:10am    
Dear SAKryukov,

Actually i have to use that control in the web page.
If you know the solution in any of the language please provide me, I know how to blend it to suite for the requirement.
For your kind information all the above languages what i have mentioned can be used in the web applications.
I know how to work around those languages
and also i want you to know that, I know how to embed the silver light application to web page and its not a problem for me if the solution is in silver light.

I think this makes sense for you.
Sergey Alexandrovich Kryukov 2-Dec-11 18:17pm    
OK, good for you. Please see my update above, after [EDIT].
--SA

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