The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientCardView.StartEditCard(visibleIndex) Method

Switches the CardView to edit mode.


StartEditCard(visibleIndex: number): void


Name Type Description
visibleIndex number

A zero-based integer that identifies a card to be edited.


Use the StartEditCard method to switch the CardView to edit mode in code. End-users can do this by clicking the Edit command item displayed within the command column.


This example shows how to switch ASPxCardView to edit mode by double-clicking a card. To do this, handle the ASPxClientCardView.CardDblClick client-side event and call the ASPxClientCardView.StartEditCard method.

<dx:ASPxCardView ID="ASPxCardView1" KeyFieldName="ID" AutoGenerateColumns="False" runat="server" ClientInstanceName="card">
    <ClientSideEvents CardDblClick="function(s, e) {
    }" />
        <dx:CardViewTextColumn FieldName="ID" VisibleIndex="0">
        <dx:CardViewTextColumn FieldName="Data" VisibleIndex="1">
See Also