A newer version of this page is available. Switch to the current version.

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
Public Function CardView(Of CardType As Class)(
    method As Action(Of CardViewSettings(Of CardType))
) As CardViewExtension(Of CardType)

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