0

我正在使用 DevExpressASPxTreeList来显示数据,并且我使用了一些自定义linkbuttonsinTreeListDataColumn和 inTreeListCommandColumn我放置了EditButtonDeleteButton. 现在,我需要增加EditDeleteButtons 的大小。 在此处输入图像描述

和我的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>
4

1 回答 1

0

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

...
<dx:TreeListCommandColumn>
   <CellStyle Font-Size="20px">
   </CellStyle>
</dx:TreeListCommandColumn>
...
于 2013-09-19T14:08:39.550 回答