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.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that is the editor ID. |
Property Paths
You can access this nested property as listed below:
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
WebForms (declaratively):
<dx:ASPxGridView ID="Grid" runat="server" DataSourceID="GridDataSource">
<SettingsSearchPanel CustomEditorID="ASPxTextBox1" />
...
</dx:ASPxGridView>
<dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px">
</dx:ASPxTextBox>
WebForms (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:
WebForms: Search Panel
MVC: Search Panel
CardView:
VerticalGrid:
TreeList:
Online Demos
GridView:
WebForms: ASPxGridView - Search Panel
CardView:
WebForms: ASPxCardView - Search Panel
Vertical Grid:
WebForms: ASPxVerticalGrid - Search Panel
Tree List:
WebForms: ASPxTreeList - Search Panel