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

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.v18.2.dll


public static CardViewModel GetViewModel(
    string name
Public Shared Function GetViewModel(
    name As String
) As CardViewModel


Name Type Description
name String

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


Type Description

A CardViewModel object representing the CardView view model.


Refer to the Custom Data Binding topic to learn more.

See Also