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

[Solved] Update event not firing

4 Answers 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deon Visser
Top achievements
Rank 1
Deon Visser asked on 20 Jul 2009, 01:52 PM
Hi

I have a grid which allows me to edit the row. Updating works fine. However when I use the itemupdated event handler the row does not update. The itemupdated eventworks fires fine though.

Is there something else I must do when I use the itemupdated event or is this a bug?

Thank you

4 Answers, 1 is accepted

Sort by
0
Deon Visser
Top achievements
Rank 1
answered on 20 Jul 2009, 06:46 PM
Hmmm, after some more playing around, i have found that it is not actually the itemupdated event causing the row not to update but the fact that I added more additional datakey names.
It works fine if I only have one datakey name.

How do  I overcome this as I need multiple datakey names?

Thanks
0
Pavlina
Telerik team
answered on 22 Jul 2009, 11:20 AM
Hello Deon,

Possible reason your update event not firing is that the update failed. Therefore if you are using automatic operations, please check if your update command is properly defined. You can find further information about RadGrid updating in the following article:
http://www.telerik.com/help/aspnet-ajax/grdautomaticdatasourceoperations.html

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Deon Visser
Top achievements
Rank 1
answered on 23 Jul 2009, 07:08 AM
Thanks for the reply.

As I mentioned, the update works fine as long as I do not have multiple datakey names. It works fine if only the primary key is defined as a datakey.

Regards
0
Pavlina
Telerik team
answered on 27 Jul 2009, 03:16 PM
Hi Deon,

I am afraid that the provided information is not enough to determine what have caused the unexpected behavior.
Please note that  you can set more than one field as the  key value in the DataKeyNames array.
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="CustomerID, Address">  

If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating your logic, and the unwanted behavior. We will review it locally, and advise you further.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Deon Visser
Top achievements
Rank 1
Answers by
Deon Visser
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or