The DevExpress ASP.NET Vertical Grid control allows end-users to edit and update multiple grid columns on the client side and send them to the server in a single request.
To enable the batch editing functionality, set the SettingsEditing.Mode property to Batch, so the control data contained in a page can be edited using in-line editors. The modified cells are colored in green. Deleted records are highlighted with gray and display the 'Recover' command item. To hide the deleted records from the view, set the SettingsEditing.BatchEditSettings.HighlightDeletedRecords property to false. All changes are maintained on the client side until the Save changes link is clicked. You can cancel all changes by clicking the Cancel changes link.
If a control contains modified data, it displays a confirm message before a callback or postback is performed.
In this demo, use the Start edit action combo box ("Click" or "Double click") to specify the action that should be used to begin editing data.
The VerticalGrid validates user-input on the client-side based on the data annotation attributes of your Model. This approach is also called unobtrusive client validation. To enable the unobtrusive validation, the partial View with the VerticalGrid extension is placed inside the HTML <form> element (rendered via the Html.BeginForm helper). The Partial View with the VerticalGrid extension contains two helpers that enable the unobtrusive client validation: Html.EnableClientValidation and Html.EnableUnobtrusiveJavaScript. An error is displayed next to the individual data editors.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxVerticalGridDemos |