Loading Demo...
default
Default Theme
Bootstrap Theme
Material Theme
Classic Theme
editing_inline.cshtml
Editing_InlineController.cs
ProductService.cs
ProductViewModel.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE API DescriptionThe Telerik UI for ASP.NET MVC Data Grid supports an inline editing mode. As a result, users are able to edit the content of th eData Grid cells by simply clicking the Edit row button, then modify the data inside the cell, and, finally, save or discard the changes by using the Update or Cancel buttons.
This demo shows how to implement the inline editing feature of the Data Grid by using the create
, update
, and destroy
data operations of the component.
To enable its inline editing capabilities:
.Editable(editable => editable.Mode(GridEditMode.InLine))
..ToolBar(toolbar => toolbar.Create())
.columns.Command(command => { command.Edit(); command.Destroy();});
.Create
, Read
, Update
, and Destroy
action methods to the DataSource
declaration. These methods are responsible for the manipulation of the data items.Model
as the DataSource.Model.Id
.EditorTemplateName()
method. Add the view with the editor in the \Views\Shared\EditorTemplates folder.For more information about the editing capabilities, refer to the official Telerik UI for ASP.NET MVC Data Grid product documentation on the available inline editing approaches.
Additional AppsThis Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all
Telerik ASP.NET MVC componentsand their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in the
ThemeBuilder.
Support & Learning ResourcesRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4