Skip to main content

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

Creates a CardView.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

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