ASPxGridSearchPanelSettings.CustomEditorID Property
Specifies the ID of a DevExpress editor that is used to set search panel filter criterion.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that is the editor ID. |
Remarks
Use the CustomEditorID property to specify an external DevExpress editor in the search panel.
Note
You can also use the ASPxGridView.SearchPanelEditorCreate event to replace the default search panel editor with another DevExpress editor.
Example
Web Forms (In markup):
<dx:ASPxGridView ID="Grid" runat="server" DataSourceID="GridDataSource">
<SettingsSearchPanel CustomEditorID="ASPxTextBox1" />
...
</dx:ASPxGridView>
<dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px">
</dx:ASPxTextBox>
Web Forms (in code):
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.CustomEditorID = "textBox1";
ASPxTextBox tb = new ASPxTextBox();
tb.ID = "textBox1";
Page.Form.Controls.Add(textBox1);
MVC:
@Html.DevExpress().GridView(settings => {
settings.Name = "grid";
settings.SettingsSearchPanel.CustomEditorID = "textBox";
...
}).Bind(Model).GetHtml()
@Html.DevExpress().TextBox(settings => {
settings.Name = "textBox";
...
}).Bind(Model).GetHtml()
Concept
GridView:
Web Forms: Search Panel
MVC: Search Panel
CardView:
VerticalGrid:
TreeList:
Online Demos
GridView:
Web Forms: ASPxGridView - Search Panel
CardView:
Web Forms: ASPxCardView - Search Panel
Vertical Grid:
Web Forms: ASPxVerticalGrid - Search Panel
Tree List:
Web Forms: ASPxTreeList - Search Panel