CardViewSettings.InitNewCard Property
Enables you to initialize added cards.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public ASPxDataInitNewRowEventHandler InitNewCard { get; set; }
#Property Value
Type | Description |
---|---|
ASPx |
A ASPx |
#Remarks
The initialization of a new row added to the CardView occurs when:
- the ASPxClientCardView.AddNewCard method is called;
- an end-user clicks on the New command button.
Use the argument’s NewValues property to specify the values in the new card. Note that you can initialize values only for those columns that are visible within the Edit Form. To specify values of hidden columns, modify the properties of a model object passed to an action method specified via the MVCxCardViewEditingSettings.AddNewCardRouteValues property.