Telerik RadGrid provides rich server API for inserting new data, updating existing data
and deleting data directly from the specified data source (AccessDataSource, SqlDataSource or
ObjectDataSource). The new ASP.NET 2.0 framework allows using
these features entirely declaratively, except the error-handling logic.
What is on this example:
- You can insert a new item using the [Add new record] button in the Command row.
- You can edit an item using the Edit button (the first button in each row).
- You can delete an item, using the Delete button (at the end of each row).
Telerik RadGrid supports automatic extraction of values from the form template under
ASP.NET 2.0. Thus the automatic data-editing in this case does not require any extra coding
but merely declaring two-way binding expression for each input control.
This example also demonstrates the mechanism
for setting default values for the edited fields in the insertion form.
Note that FormTemplate custom edit form is not supported with simple data-binding
(calling DataBind()). See the
Simple data binding demo from the
Populating with
data section for more info about the limitations of this binding mode.
In addition, these documentation topics discuss in detail how to update/insert records
manually (when you do not use the data source controls depicted in the first paragraph)using
FormTemplate custom edit form:
Updating values with FormTemplate edit form
Inserting values with FormTemplate edit form
Deleting records