BootstrapCardView.CardLayoutItemsCreated Event

Occurs when the card layout has been created.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.2.dll

Declaration

public event BootstrapCardViewCardLayoutItemsCreatedEventHandler CardLayoutItemsCreated
Public Event CardLayoutItemsCreated As BootstrapCardViewCardLayoutItemsCreatedEventHandler

Event Data

The CardLayoutItemsCreated event handler receives an argument of the BootstrapCardViewCardLayoutItemsCreatedEventArgs type. The following properties provide information specific to this event.

Property Description
IsEditingCard
Properties Contains settings related to the Form Layout used in the processed card.
VisibleIndex Gets the visible index of the processed card.

Remarks

The CardLayoutItemsCreated event is raised for each data card in the Card View when the corresponding card layout has been created. You can handle this event to change card settings.


protected void CardView_CardLayoutItemsCreated(object sender, 
  DevExpress.Web.Bootstrap.BootstrapCardViewCardLayoutItemsCreatedEventArgs 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