Back to Devexpress

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

aspnetmvc-devexpress-dot-web-dot-mvc-dot-ui-dot-extensionsfactory-dot-cardview-1-x28-system-dot-action-devexpress-dot-web-dot-mvc-dot-cardviewsettings-0-x29.md

latest2.3 KB
Original Source

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

Creates a CardView.

Namespace : DevExpress.Web.Mvc.UI

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public CardViewExtension<CardType> CardView<CardType>(
    Action<CardViewSettings<CardType>> method
)
    where CardType : class
vb
Public Function CardView(Of CardType As Class)(
    method As Action(Of CardViewSettings(Of CardType))
) As CardViewExtension(Of CardType)

Parameters

NameTypeDescription
methodAction<CardViewSettings<CardType>>

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

|

Type Parameters

Name
CardType

Returns

TypeDescription
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

ExtensionsFactory Class

ExtensionsFactory Members

DevExpress.Web.Mvc.UI Namespace