DevExpress v24.1全新发布

DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

如何禁用ASPxTreeList复选框选项

来源:本站原创   发布时间:2013-01-24   浏览:4214次

解决方法:

禁用ASPxTreeList复选框选项,参考下面示例:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.3, Version=9.3.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="mainForm" runat="server">
        <div>
            <dx:ASPxTreeList ID="ASPxTreeListDemo" runat="server" AutoGenerateColumns="False"
                DataSourceID="AccessDataSourceDemo" ParentFieldName="ReportsTo" KeyFieldName="EmployeeID"
                OnHtmlRowPrepared="ASPxTreeListDemo_HtmlRowPrepared">
                <SettingsSelection Enabled="True" />
                <Columns>
                    <dx:TreeListTextColumn FieldName="LastName" VisibleIndex="0">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="FirstName" VisibleIndex="1">
                    </dx:TreeListTextColumn>
                    <dx:TreeListTextColumn FieldName="Title" VisibleIndex="2">
                    </dx:TreeListTextColumn>
                </Columns>
                <SettingsBehavior AutoExpandAllNodes="True" />
            </dx:ASPxTreeList>
        </div>
        <asp:AccessDataSource ID="AccessDataSourceDemo" runat="server" DataFile="~/App_Data/nwind.mdb"
            SelectCommand="SELECT [EmployeeID], [LastName], [FirstName], [Title], [ReportsTo] FROM [Employees]">
        </asp:AccessDataSource>
    </form>
</body>
</html>


本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/464.html
扫码咨询
电话咨询
023-68661681
返回
顶部