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

[Solved] Calls to .CancelAll() for two rad grids on the same page. Second fails

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 08 Mar 2013, 11:41 PM
Hello,
I'm having a bit of an issue with some RadGrids. Basically, I have a method which calls the cancelAll method for both my rad grids on the page, one after the other. This call originates from some Javascript. If I insert a delay between the calls (of as little as 250), both calls work fine. However, if I call one after the other, the second one always fails. It seems that the server is Aborting the call. Has anyone encountered anything similar?

Thanks

Travis

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 13 Mar 2013, 09:48 AM
Hi Travis,

What is suppose is happening is that you have 2 grids inside 2 UpdatePanels, and you are trying to cancel their edit from a script outside the panels.
Each canceling will initiate AjaxCall, and since you can't do the two calls in the same time the first will be aborted.
You have to do this server side. Do AjaxCall for both UpdatePanels (make sure your script triggers both panels at the same time) and then cancel the edits for both grid using server side code to avoid this problem.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Travis
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or