ASPxClientCardView.CardDblClick Event
In This Article
Fires on the client when a card is double clicked.
#Declaration
TypeScript
CardDblClick: ASPxClientEvent<ASPxClientCardViewCardClickEventHandler<ASPxClientCardView>>
#Event Data
The CardDblClick event's data class is ASPxClientCardViewCardClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
cancel |
Specifies whether to cancel the related action (for example, row edit, export).
Inherited from ASPx |
html |
Provides access to the parameters associated with the ASPx |
visible |
Gets the processed card’s visible index. |
#Example
The following example switches ASPxCardView to edit mode when an end user clicks a card. To implement 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) {
s.StartEditCard(e.visibleIndex);
}" />
<Columns>
<dx:CardViewTextColumn FieldName="ID" VisibleIndex="0">
</dx:CardViewTextColumn>
<dx:CardViewTextColumn FieldName="Data" VisibleIndex="1">
</dx:CardViewTextColumn>
</Columns>
<CardLayoutProperties>
<Items>
...
</Items>
</CardLayoutProperties>
</dx:ASPxCardView>
See Also