TreeListCommandColumnApplyFilterButton Class
A command button that allows you to apply filter criteria.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll
Declaration
Related API Members
The following members return TreeListCommandColumnApplyFilterButton objects:
Remarks
The ApplyFilter command button allows users to apply filter criteria to the ASPxTreeList.
In markup:
<dx:ASPxTreeList ID="TreeList" runat="server"...>
<Columns>
<!--...-->
<dx:TreeListCommandColumn>
<ApplyFilterButton Visible="true" />
</dx:TreeListCommandColumn>
</Columns>
<Settings ShowFilterRow="true" />
<SettingsBehavior FilterRowMode="OnClick"/>
<!--...-->
</dx:ASPxTreeList>
In code:
protected void Page_Init(object sender, EventArgs e)
{
ASPxTreeList treeList = new ASPxTreeList();
treeList.ID = "treeList";
Form.Controls.Add(treeList);
treeList.Settings.ShowFilterRow = true;
treeList.SettingsBehavior.FilterRowMode = DevExpress.Web.GridViewFilterRowMode.OnClick;
TreeListDataColumn col = new TreeListDataColumn();
col.FieldName = "Column_name";
treeList.Columns.Add(col);
//...
DataTable table = new DataTable();
table.Columns.Add("Column_name", typeof(string));
table.Rows.Add("Value");
//...
treeList.DataSource = table;
treeList.DataBind();
TreeListCommandColumn commandColumn = new TreeListCommandColumn();
commandColumn.ApplyFilterButton.Visible = true;
treeList.Columns.Add(commandColumn);
}
MVC:
@Html.DevExpress().TreeList(settings => {
settings.Name = "treeList";
settings.Settings.ShowFilterRow = true;
settings.SettingsBehavior.FilterRowMode = GridViewFilterRowMode.OnClick;
//...
settings.CommandColumn.Visible = true;
settings.CommandColumn.ApplyFilterButton.Visible = true;
}).Bind(Model).GetHtml()
Implements
Inheritance
Object
StateManager
PropertiesBase
TreeListCommandColumnButton
TreeListCommandColumnApplyFilterButton
See Also