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

ExtensionsFactory.CardView<CardType>(Action<CardViewSettings<CardType>>) Method

Creates a CardView.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public CardViewExtension<CardType> CardView<CardType>(
    Action<CardViewSettings<CardType>> method
)
    where CardType : class

Parameters

Name Type Description
method Action<CardViewSettings<CardType>>

A CardViewSettings<CardType> object containing the CardView extension settings.

Type Parameters

Name
CardType

Returns

Type Description
CardViewExtension<CardType>

A CardViewExtension<CardType> object implementing CardView functionality.

Remarks

To enable binding CardView columns to Model fields using lambdas, it is required to declare the CardView extension using the CardView<CardType> strongly-typed declaration method.

Note

The partial View with the CardView extension does not need to be strongly-typed.

See Also