commit 9bbf3b63982f6cf8b0458513bd0d1358095ee70a Author: editor <@51Aspx.com> Date: Thu Oct 17 18:22:05 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..7ad6fb3 --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,57 @@ +TREEGRID控件及DEMO源码 + +一、源码描述 +环境:VS2022  + +二、功能介绍 +支持Asp.net2.0,MS Ajax,Postback,CallBack(可用来加载子节点),Event(Select,Expend,Collaspe,RowCreate,RowDataBound,RowCommand),DataBind +使用方法与TreeView和GridView相似。 +原理: +这个控件主要类与MS TreeView相似,包括TreeGrid、TreeGridNode、TreeGridRow三个核心类。TreeGridNode表示一个节点,可以有DataItem属性,TreeGridRow表示节点所在的行。TreeGrid当然就是包括Nodes的那个树。另外,还有TreeGridNode和TreeGridRow的集合类。 +与TreeView区别在于不同的展现方式和视图状态管理。 +TreeGrid使用GridView的展现方式和语法,并且在客户端可以控制节点的展开和折叠。与GridView的展现方式和语法需要定义Template,客户端节点的展开和折叠使用Javascript控制就可以了。 + +some feature +Support Ajax  +Support Postback  +Support Callback  +Support Event -- Select Edit Update Delete  +Support DataBind like TreeView  +Support DataBind like GirdView  +Support ASP.net 2.0, but this demo is 3.5, because ajax  +future work +Data Bind from DataSource  +Design Mode Support  +A icon for this control -- who can help me?  +Examples and Document  +Testing, if you find bugs, please tell me, thank you!  +sherwin zhu. sherwinzhu@126.com + +三、注意事项 +ctrl+F5运行即可。 + + + + + + +作者: sherwinzhu + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/TreeGrid +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/App_Themes/Default/Common.css b/App_Themes/Default/Common.css new file mode 100644 index 0000000..057e066 --- /dev/null +++ b/App_Themes/Default/Common.css @@ -0,0 +1,15 @@ +.tgDefault +{ + border-top: 1px solid #7c7c94; + background-color: #ffffff; + border-spacing: 0px; + font-size: 12px; + font-family: ����, 'Arial' , 'Verdana' , 'sans-serif' , 'Times New Roman'; +} +.tgDefault img +{ + border: 0px; + padding: 0px; + margin: 0px; + display: inline-block; +} diff --git a/Backup/App_Themes/Default/Common.css b/Backup/App_Themes/Default/Common.css new file mode 100644 index 0000000..057e066 --- /dev/null +++ b/Backup/App_Themes/Default/Common.css @@ -0,0 +1,15 @@ +.tgDefault +{ + border-top: 1px solid #7c7c94; + background-color: #ffffff; + border-spacing: 0px; + font-size: 12px; + font-family: ����, 'Arial' , 'Verdana' , 'sans-serif' , 'Times New Roman'; +} +.tgDefault img +{ + border: 0px; + padding: 0px; + margin: 0px; + display: inline-block; +} diff --git a/Backup/Default.aspx b/Backup/Default.aspx new file mode 100644 index 0000000..ec366e5 --- /dev/null +++ b/Backup/Default.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TB.Web.UI.TreeGridDemo.Default" %> + + + + + + First Simple Demo + + +
+ +
some feature
+