Back to Devexpress

ASPxGridSearchPanelSettings Class

aspnet-devexpress-dot-web-8134e23f.md

latest5.3 KB
Original Source

ASPxGridSearchPanelSettings Class

Serves as a base for classes that implement settings affecting the search panel functionality in grid-like controls.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxGridSearchPanelSettings :
    ASPxGridSettingsBase
vb
Public Class ASPxGridSearchPanelSettings
    Inherits ASPxGridSettingsBase

Remarks

Use the following properties to accerss the base search panel’s settings:

Example

Web Forms (In markup):

aspx
<dx:ASPxGridView ID="Grid" runat="server" >
    ...
    <SettingsSearchPanel Visible="true" ShowApplyButton="True" ShowClearButton="True" 
    ColumnNames="ContactName; CompanyName" />
</dx:ASPxGridView>

Web Forms (in code):

csharp
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.Visible = true;
grid1.SettingsSearchPanel.ShowApplyButton = true;
grid1.SettingsSearchPanel.ShowClearButton = true;
grid1.SettingsSearchPanel.ColumnNames = "ContactName; CompanyName";

MVC:

csharp
@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.SettingsSearchPanel.Visible = true;
    settings.SettingsSearchPanel.ShowApplyButton = true;
    settings.SettingsSearchPanel.ShowClearButton = true;
    settings.SettingsSearchPanel.ColumnNames = "ContactName; CompanyName";
    ...
}).Bind(Model).GetHtml()

Concept

GridView:

CardView :

VerticalGrid :

TreeList :

Online Demos

GridView :

CardView :

Vertical Grid :

Tree List :

Implements

IStateManager

Inheritance

Show 13 items

Object StateManager PropertiesBase ASPxGridSettingsBase ASPxGridSearchPanelSettings ASPxCardViewSearchPanelSettings

ASPxGridViewSearchPanelSettings

TreeListSettingsSearchPanel

ASPxVerticalGridSearchPanelSettings

MVCxGridViewSearchPanelSettings

MVCxCardViewSearchPanelSettings

MVCxVerticalGridSearchPanelSettings

MVCxTreeListSettingsSearchPanel

See Also

ASPxGridSearchPanelSettings Members

DevExpress.Web Namespace