evExpress2011 ASPXTreeList 范例2: ASPxTreeList杂项设置
来源:互联网 发布:js下拉图片放大 编辑:程序博客网 时间:2024/06/03 07:36
1、交替的节点颜色设置属性—>Styles->AlternationgNode->BackColor 2、网格线与树线条属性->Settings->GridLines属性->Settings->ShowTreeLines 3、条件格式 ASPxTreeList允许你对个别数据Cell或者是完整节点设置个性化样式设计 ,你可以使用HtmlDataCellPrepared or HtmlRowPrepared 方法去设置你需要的设置例如上例中添加protected void treeList_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxTreeList.TreeListHtmlDataCellEventArgs e) { if (Object.Equals(e.GetValue("dptname"), "部门1A")) e.Cell.Font.Bold = true; }4、节点多行选择1. SettingsSelection.Enabled 属性设置为True2. SettingsSelection.AllowSelectAll 属性设置为 true3. SettingsSelection.Recursive 反选属性设置为true5、数据导出ASPxTreeList 很容易的使用ASPxTreeListExporter组件导出数据treeListExporter.WriteRtfToResponse();treeListExporter.WriteXlsxToResponse();treeListExporter.WriteXlsToResponse();treeListExporter.WritePdfToResponse(); 6、数据分页 SettingsPager.Mode 属性设置为 ShowPager.7、数据统计AspxTreeList 能使你进行单列或一组节点的计算统计,显示的结果在页脚的单元。AspxTreeList提供5个嵌入聚集函数 (count ,max,min等等)步骤一 把Settings.ShowFooter属性设置为 true.步骤二 组页脚显示 Settings.ShowGroupFooter属性设置为 true. <Settings ShowGroupFooter="True" ShowFooter="True" GridLines="Both" /> <Summary>
<dx:TreeListSummaryItem FieldName="dptname" ShowInColumn=" dptname " SummaryType="Count" />
</Summary> 如果在代码里写。。。private void TreeDataBind() { string Sql="select * from com_Dpt"; DataSet ds= db.ExecuteDataSet(System.Data.CommandType.Text, Sql); treeList.DataSource =ds.Tables[0]; treeList.KeyFieldName = "dptid"; treeList.ParentFieldName = "dptfatherid"; TreeListSummaryItem a = new TreeListSummaryItem(); a.FieldName = "dptName"; a.ShowInColumn = "dptName"; a.SummaryType = DevExpress.Data.SummaryItemType.Count ; treeList.Summary.Add(a); treeList.DataBind(); }
<dx:TreeListSummaryItem FieldName="dptname" ShowInColumn=" dptname " SummaryType="Count" />
</Summary> 如果在代码里写。。。private void TreeDataBind() { string Sql="select * from com_Dpt"; DataSet ds= db.ExecuteDataSet(System.Data.CommandType.Text, Sql); treeList.DataSource =ds.Tables[0]; treeList.KeyFieldName = "dptid"; treeList.ParentFieldName = "dptfatherid"; TreeListSummaryItem a = new TreeListSummaryItem(); a.FieldName = "dptName"; a.ShowInColumn = "dptName"; a.SummaryType = DevExpress.Data.SummaryItemType.Count ; treeList.Summary.Add(a); treeList.DataBind(); }
- evExpress2011 ASPXTreeList 范例2: ASPxTreeList杂项设置
- ASPXTreeList
- ASPxTreeList 未将对象引用设置到对象的实例
- aspxtreelist的使用
- [AspxTreeList]常用方法
- ASPxTreeList获得值
- ASPxTreeList的右键按钮事件
- ASPxTreeList 取值,做链接,实际运用。
- ASPxTreeList 怎么得到默认选中的值
- AspxTreeList 点击刷新问题官网解决方法
- DevExpress的使用(一)ASPxTreeList
- 备忘:ASPxTreeList添加Footer 统计栏
- DevExpress Asp.net(7) ASPxTreeList的基本使用之一
- DevExpress Asp.net(8) ASPxTreeList的基本使用之二
- ASPxTreeList 代码绑定数据(ASP.NET第三方控件)
- ASPxTreeList 的使用心得(第三方控件)
- aspxtreelist 新增节点时获取节点的级数
- ASPxTreeList 递归树 嵌入丛表 树形结构演示
- C# 全过程用户权限实现策论 (1.Windows身份验证)
- Visual C++.NET中的字符串转换方法
- VC中用于调试程序的几个宏的使用技巧
- struts2框架和配置
- VC中的字符串操作
- evExpress2011 ASPXTreeList 范例2: ASPxTreeList杂项设置
- vc中打开exe文件
- vc中常用的方法
- 介绍flex的网址
- VC中UPDATEDATA()函数用法
- c++函数参数类型-引用
- VC之DLL编程
- VC数据类型
- VC实用小知识总结