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

Declaration

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

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