This is a migrated thread and some comments may be shown as answers.

Where to find advanced data binding (for insert/edit/..) example?

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 22 Jan 2016, 08:29 AM

I found out that Insert, Edit and Delete in a RadGrid works only when you use Advanced Data Binding. Sadly I donĀ“t find any example of this in the sample/tutorials. Maybe someone can link me an example???

 

In the examples for "Data Editing" in Grid there is only an example with CRUD Operations and nothing with the Advanced Data Binding.

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/automatic-crud-operations/defaultcs.aspx

 

Thanks

J.

 

other links I found this mentioned informations.

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-binding/understanding-data-binding/server-side-binding/advanced-data-binding-(using-needdatasource-event) 

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-binding/understanding-data-binding/server-side-binding/advanced-data-binding-(using-needdatasource-event)

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Jan 2016, 07:44 AM
Hello Julian,

Your assumption is correct: Advanced data-binding = Programmatic data-binding using NeedDataSource. Performing complex grid operations such as Inserting, Deleting, Updating, Hierarchy relations, Grouping, Exporting, Paging, Sorting, Filtering, etc. require accommodating appropriate database operations.  Therefore, we suggest you to avoid Simple Databinding and strongly recommend the use of more advanced databinding methods, which automatically handle the aforementioned functions:
Declarative DataSource
Programmatic Data Binding


For implementing manual CRUD operations, you can access the control using ItemCommand/UpdateCommand/InsertCommand methods provided by RadGrid and modify the value before passing it to the database:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-editinsert-mode

Alternatively, you can try using the ExtractValues method:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/manual-crud-operations/defaultcs.aspx


Hope this helps.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Julian
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or