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

Want to update a row

4 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meghna
Top achievements
Rank 1
Meghna asked on 09 Jul 2008, 11:03 AM
I am trying to update a row using InPlace EditMode for the grid. For changing the row to EditMode i want ItemUpdated event needs to be called. This ItemUpdated event is not getting call even though i have assigned its vale to OnItemUpdated event. Can anyone help me in this.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Jul 2008, 11:09 AM
Hi Meghna,

ItemUpdated will be called only in case of DataSourceID data-binding with automatic operations:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/AllEditableColumns/DefaultCS.aspx

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 Jul 2008, 11:30 AM
Hi Meghna,

If you are trying to Edit/Update in the code behind you can use the UpdateCommand event which will be fired on clicking the Update button. Here is a help article which explains how to perform insert/update/delete at the DataBase level with queries.
Insert/Update/Delete at database level with queries

Thanks
Shinu.
0
Meghna
Top achievements
Rank 1
answered on 10 Jul 2008, 07:21 AM
Hello Vlad,
    I am getting my data through webservices, so getting data in list of objects. Directly bind the data in page load event. So data is dynamically decided for the grid. Thats why could not use DataSourceID for the grid. I am using Edit on Double click approach for editing my grid row. But here updation is not happening as ItemUpdated event is not getting called.
          Can you highlight on this problem?
0
Sebastian
Telerik team
answered on 10 Jul 2008, 07:49 AM
Hello Meghna,

The ItemUpdated event of RadGrid will be raised on update operation only when you enabled automatic editing for the control and assign data source control for grid data generator:

http://www.telerik.com/help/aspnet-ajax/grderrorhandling.html

In your case you will need to subscribe to the UpdateCommand event of RadGrid and process the update action inside the handler manually.

Additionally, you may be interested in learning more about the new client-side binding functionality of RadGrid for ASP.NET AJAX from the following online resources:

http://www.telerik.com/DEMOS/ASPNET/Prometheus-Futures/Grid/Examples/Client/DataBinding/DefaultCS.aspx
http://www.telerik.com/help/aspnet-ajax-futures/client-side-binding.html

http://blogs.telerik.com/VladimirEnchev/Posts/08-05-23/SQL_Server_sorting_paging_and_filtering_with_RadGrid_client-side_data-binding_to_WebService.aspx?ReturnURL=%2fVladimirEnchev%2fPosts.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Meghna
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Shinu
Top achievements
Rank 2
Meghna
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or