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

insert delete and update commands frire twice

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob Fenton
Top achievements
Rank 1
Bob Fenton asked on 20 May 2010, 07:49 PM
Hi

I am new to Ajax and Telerik products in particular but I have a problem with a page I have created.

I have defined a grid such that updates and inserts are handled by the insertcommand, updatecommand methods etc.

Everything works (much to my surprise and delight) except that the methods fire twice for every update, insert and delete.  I can of course handle this programatically but I would really like to know what I may have done which has caused it to happen.  I suspect that it is a grid property which I have set (or not set) but I cannot find anything obvious.

My second question relates to InPlace editing.  If something goes wrong with the database update, is there a slick way of reporting this back to the user.  I would really like to post a message alongside the record being edited but nothing I have tried seems to work.

Many thanks

Bob

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 26 May 2010, 08:14 AM
Hello Bob Fenton,

Note that if you use VB and have wired your events in the markup as well as in the code behind (using the Handles key word), then they would fire twice. If the case is different, I would suggest that you open a formal support ticket and send me a small sample project demonstrating the problem.

As to your second question you can review the approach described in the following help article:

Updating values in-place and with edit forms

I hope this helps.

Regards,
Martin
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Bob Fenton
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or