ASPxCardView.CardLayoutCreated Event
Occurs when the card layout has been created.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
Declaration
Event Data
The CardLayoutCreated event's data class is ASPxCardViewCardLayoutCreatedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Properties | Contains settings related to the FormLayout used in the processed card. |
VisibleIndex | Gets the visible index of the processed card. |
Remarks
The CardLayoutCreated event is raised for each data card in the ASPxCardView when the corresponding card layout has been created. You can handle this event to change card styles or settings.
protected void CardView_CardLayoutCreated(object sender, DevExpress.Web.ASPxCardViewCardLayoutCreatedEventArgs e) {
// Process the first card only
if (e.VisibleIndex == 0) {
// Change the caption of the first layout item
e.Properties.Items[0].Caption = "New Caption";
// Set the new ColCount for the processed card
e.Properties.ColCount = 3;
}
See Also