Skip to main content
A newer version of this page is available. .
Tab

ASPxCardView.AfterPerformCallback Event

Fires after a callback or a postback initiated by the control has been processed on the server.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public event ASPxCardViewAfterPerformCallbackEventHandler AfterPerformCallback

Event Data

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

Property Description
Args Gets specific information (if any) passed from the client side. Inherited from ASPxGridAfterPerformCallbackEventArgs.
CallbackName Gets the callback name. Inherited from ASPxGridAfterPerformCallbackEventArgs.

Remarks

Handle the AfterPerformCallback event to perform actions after a callback or a postback initiated by the control has been processed on the server. Use the ASPxGridAfterPerformCallbackEventArgs.CallbackName property to identify the processed callback (e.g., ‘STARTEDIT’, CUSTOMCALLBACK’, etc.).

Example

This example illustrates how to handle the AfterPerformCallback event to perform simple actions depending on the callback type.

<dx:ASPxCardView ID="ASPxCardView1" runat="server" ClientInstanceName="cardview" DataSourceID="AccessDataSource1" OnAfterPerformCallback="ASPxCardView1_AfterPerformCallback" KeyFieldName="CustomerID" AutoGenerateColumns="False">
<Columns>
    <dx:CardViewTextColumn FieldName="CompanyName" VisibleIndex="1">
    </dx:CardViewTextColumn>
    <dx:CardViewTextColumn FieldName="ContactName" VisibleIndex="2">
    </dx:CardViewTextColumn>
    <dx:CardViewTextColumn FieldName="City" VisibleIndex="5">
    </dx:CardViewTextColumn>
    <dx:CardViewTextColumn FieldName="Region" VisibleIndex="6">
    </dx:CardViewTextColumn>
    <dx:CardViewTextColumn FieldName="Country" VisibleIndex="8">
    </dx:CardViewTextColumn>
</Columns>
<CardLayoutProperties>
    <Items>
        <dx:CardViewCommandLayoutItem HorizontalAlign="Right" ShowSelectCheckbox="True" ShowEditButton="True">
        </dx:CardViewCommandLayoutItem>
        <dx:CardViewColumnLayoutItem ColumnName="Company Name">
        </dx:CardViewColumnLayoutItem>
        <dx:CardViewColumnLayoutItem ColumnName="Contact Name">
        </dx:CardViewColumnLayoutItem>
        <dx:CardViewColumnLayoutItem ColumnName="City">
        </dx:CardViewColumnLayoutItem>
        <dx:CardViewColumnLayoutItem ColumnName="Region">
        </dx:CardViewColumnLayoutItem>
        <dx:CardViewColumnLayoutItem ColumnName="Country">
        </dx:CardViewColumnLayoutItem>
        <dx:EditModeCommandLayoutItem HorizontalAlign="Right">
        </dx:EditModeCommandLayoutItem>
    </Items>
</CardLayoutProperties>
</dx:ASPxCardView>       
<br />
<dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="Custom Callback">
    <ClientSideEvents Click="function(s, e) {
        cardview.PerformCallback(); 
    }" />
</dx:ASPxButton>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/nwind.mdb"
    SelectCommand="SELECT * FROM [Customers]" />
See Also