Skip to main content

CardViewExtension.GetViewModel(String) Method

Returns the CardView’s view model object that maintains the extension state and provides the capacity to populate itself with data when the CardView is used in custom data binding mode.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static CardViewModel GetViewModel(
    string name
)

Parameters

Name Type Description
name String

A string value that is the unique identifier name (SettingsBase.Name) for the CardView.

Returns

Type Description
CardViewModel

A CardViewModel object representing the CardView view model.

Remarks

Refer to the Custom Data Binding topic to learn more.

See Also