c#下拉列表树形菜单,带伸缩节点

上传者: jmwq520 | 上传时间: 2023-09-20 06:07:12 | 文件大小: 288KB | 文件类型: RAR
我们经常在RadComboBox中放上RadTreeView当做分类使用,是挺帅的.可是有的时候我们要做父节点不可以选择,而子节点才能选择! 下面我就开始吧! 当然页面上必须需要 没有这个运行不了.因为randcontrol也是用asp.net ajax 文章类别:
页面上放歌Radcontrol控件,然后在添加一个ItemTemplate模板.这个模板里面就RadTreeView控件.我们要在选择RadComboBox中选择的RadTreeView 就是如下的效果图 效果还不错的样子.呵呵 可以选择子节点,不可以选择父节点的js如下 [removed] function nodeClicking(sender, args) { var comboBox = $find('rcbSort'); var node = args.get_node(); if(node.get_nodes().get_count()>0) { }else { if(node.get_value()=="") { } else { comboBox.set_text(node.get_text()); comboBox.hideDropDown(); } } } function StopPropagation(e) { if(!e) { e = window.event; } e.cancelBubble = true; }

文件下载

资源详情

[{"title":"( 19 个子文件 288KB ) c#下拉列表树形菜单,带伸缩节点","children":[{"title":"WebApplication1","children":[{"title":"WebApplication1.suo <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"WebApplication1","children":[{"title":"WebForm1.aspx <span style='color:#111;'> 4.70KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"WebApplication1.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"WebApplication1.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"Telerik.Web.UI.xml <span style='color:#111;'> 2.89MB </span>","children":null,"spread":false}],"spread":true},{"title":"WebForm2.aspx <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"Web.config <span style='color:#111;'> 6.90KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WebApplication1.csproj.FileListAbsolute.txt <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"WebApplication1.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"WebApplication1.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"WebForm1.aspx.cs <span style='color:#111;'> 615B </span>","children":null,"spread":false},{"title":"WebForm1.aspx.designer.cs <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"App_Data","children":[{"title":"Countries.mdb <span style='color:#111;'> 232.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"WebForm2.aspx.designer.cs <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"WebApplication1.csproj <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"WebApplication1.csproj.user <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"WebForm2.aspx.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"WebApplication1.sln <span style='color:#111;'> 935B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明