【发布时间】:2013-05-31 07:27:46
【问题描述】:
我正在使用 DevExpress ASPxTreeList 来显示数据,并且我在 TreeListDataColumn 和 TreeListCommandColumn 中使用了一些自定义 linkbuttons 我已经放置了 EditButton 和 DeleteButton。
现在,我需要增加Edit 和Delete 按钮的大小。
还有我的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