【问题标题】:DevExpress ASPxTreeList CommandColumn Buttons SizeDevExpress ASPxTreeList CommandColumn 按钮大小
【发布时间】:2013-05-31 07:27:46
【问题描述】:

我正在使用 DevExpress ASPxTreeList 来显示数据,并且我在 TreeListDataColumnTreeListCommandColumn 中使用了一些自定义 linkbuttons 我已经放置了 EditButtonDeleteButton。 现在,我需要增加EditDelete 按钮的大小。

还有我的TreeList 代码:

<dx:ASPxTreeList ID="TreeList_Branch_Departments" runat="server" KeyFieldName="ChildBranchID" ParentFieldName="ParentBranchID" AutoGenerateColumns="false" Theme="BlackGlass" Height="410px"
        Width="534px" Font-Size="11px" Font-Names="calibri" OnHtmlDataCellPrepared="TreeList_Branch_Departments_HtmlDataCellPrepared" OnCommandColumnButtonInitialize="TreeList_Branch_Departments_CommandColumnButtonInitialize">
        <Columns>
            <dx:TreeListDataColumn FieldName="ChildBranchName" CellStyle-Font-Bold="true" CellStyle-Font-Names="calibri" CellStyle-Font-Size="Medium" VisibleIndex="0" />
            <dx:TreeListDataColumn FieldName="p" VisibleIndex="1" Visible="false"></dx:TreeListDataColumn>
            <dx:TreeListDataColumn Name="BRANCH">
                <DataCellTemplate>
                    <asp:LinkButton ID="Btn_CreateBranch" runat="server" ForeColor="DeepPink" Font-Underline="true" Font-Bold="true" Font-Size="Medium" CommandArgument='<%#Eval("ChildBranchID")%>' OnClick="Btn_CreateBranch_Click">New Branch</asp:LinkButton>
                </DataCellTemplate>
            </dx:TreeListDataColumn>
            <dx:TreeListDataColumn Name="DEPT">
                <DataCellTemplate>
                    <asp:LinkButton ID="Btn_CreateDept" runat="server" Font-Underline="true" ForeColor="DarkOrange" Font-Size="Medium" Font-Bold="true" CommandArgument='<%#Eval("ChildBranchID") %>' OnClick="Btn_CreateDept_Click">New Department</asp:LinkButton>
                </DataCellTemplate>
            </dx:TreeListDataColumn>
            <dx:TreeListCommandColumn>
                <EditButton Visible="True" />
                <DeleteButton Visible="True" />
            </dx:TreeListCommandColumn>
        </Columns>
        <SettingsBehavior ExpandCollapseAction="NodeDblClick" />
        <SettingsSelection AllowSelectAll="true" Enabled="true" Recursive="true" />
        <SettingsBehavior AllowFocusedNode="true" AllowSort="false" AllowDragDrop="false" />
    </dx:ASPxTreeList>

【问题讨论】:

    标签: c# .net devexpress xtratreelist


    【解决方案1】:

    编辑和删除按钮位于命令列下。您可以通过在标签 TreeListCommandColumn 下添加标签 CellStyle 来增加大小

    ...
    <dx:TreeListCommandColumn>
       <CellStyle Font-Size="20px">
       </CellStyle>
    </dx:TreeListCommandColumn>
    ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多