需要单级树控制代码或带有编辑删除选项的单级菜单 [英] Need the single level Tree control code or single level menu with edit delete option

查看:322
本文介绍了需要单级树控制代码或带有编辑删除选项的单级菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要具有添加,编辑,删除选项的单级树控制代码或单级菜单.

可以使用以下任何一种语言.
c#(asp.net),jquery,javascript,vb.net,silverlight(最后一个选择)

请尽快帮助我.

在此先谢谢您.

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.

推荐答案

您可以使用一种或多种语言获得解决方案,但是这样的问题根本没有意义,因为答案可能真的无法使用.在实践中.我看不到您知道自己想要什么,这会极大地阻碍您的解决方案.

这是因为某些语言只能在服务器端使用,某些语言只能在客户端使用,而Silverlight是一个非常不同的平台.如果您不在乎,则意味着您对答案没有真正的实际需要(学校作业或什么?).

我建议避免在无法使用答案时回答问题.如果您能证明我错了,我会很高兴,但是您需要解释一下.



我很高兴得知我可能对您有错,并且您已经掌握了很多语言和技术.但是,您甚至没有在要实现事物(客户端或服务器)的那一侧表达任何偏好,这一事实使我感到怀疑.

如我所说,单层树视图是列表视图或列表框.因此,您仍然可以使用TreeView,请参见,但是简单的ListBox也足够了:

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 [ ^ ].

在客户端,我认为使用jQuery插件解决方案可以获得最大的灵活性.您可以找到树视图和菜单的许多实现.它们通常是多级的,当然,您将只使用一个级别,直到需要更多的:-).请参阅:

http://docs.jquery.com/Plugins/Treeview [ http://www.googlecom. 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& amp; 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 [ http://en.lmgtfy.com/?q=jQuery+( menu + OR + treeview) [ ^ ].

祝你好运,
—SA
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.



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


这篇关于需要单级树控制代码或带有编辑删除选项的单级菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆