Back to Devexpress

ASPxCardView.SearchPanelEditorCreate Event

aspnet-devexpress-dot-web-dot-aspxcardview-2266d38d.md

latest3.9 KB
Original Source

ASPxCardView.SearchPanelEditorCreate Event

Enables you to replace the default search panel editor with custom one.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxCardViewSearchPanelEditorCreateEventHandler SearchPanelEditorCreate
vb
Public Event SearchPanelEditorCreate As ASPxCardViewSearchPanelEditorCreateEventHandler

Event Data

The SearchPanelEditorCreate event's data class is ASPxCardViewSearchPanelEditorCreateEventArgs. The following properties provide information specific to this event:

PropertyDescription
EditorPropertiesGets or sets the filter cell’s editor. Inherited from ASPxGridEditorCreateEventArgs.
ValueGets or sets the filter cell’s value. Inherited from ASPxGridEditorCreateEventArgs.

Remarks

The SearchPanelEditorCreate event is raised for an editor within the search panel, and enables you to replace the default editor with a custom one.

To change the editor, use the event parameter’s ASPxGridEditorCreateEventArgs.EditorProperties property. The editor’s value is specified by the ASPxGridEditorCreateEventArgs.Value property.

To learn more about the search panel, see the Search Panel topic.

Example

aspx
<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="CustomersDataSource" Width="100%" AutoGenerateColumns="False" OnSearchPanelEditorCreate="ASPxCardView1_SearchPanelEditorCreate">
        <Columns>
        ...
        </Columns>
        <SettingsSearchPanel Visible="true" ShowApplyButton="True" ShowClearButton="True"/>
    </dx:ASPxCardView>
csharp
protected void ASPxCardView1_SearchPanelEditorCreate(object sender, DevExpress.Web.ASPxCardViewSearchPanelEditorCreateEventArgs e) {
        e.EditorProperties = new SpinEditProperties();
    }
vb
Protected Sub ASPxCardView1_SearchPanelEditorCreate(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxCardViewSearchPanelEditorCreateEventArgs)
    e.EditorProperties = New SpinEditProperties()
End Sub

See Also

SearchPanelEditorInitialize

Card View

Card View Search Panel

Card View Elements

Online Demo: CardView - Search Panel

ASPxCardView Class

ASPxCardView Members

DevExpress.Web Namespace