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

Ajax only works on third click

1 Answer 15 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 23 Aug 2008, 05:11 PM

 I have a page where I am ajaxifying a grid that is contained within a user control. I have this working on one page just fine. However, I put the user control on a second page and have the issue where the first click is ignored, the second click causes the page to scroll down to the bottom of the page, then the ajax starts working fine the third click and thereafter.

I have an ajax manager on my hosting page that I get from RadAjaxManager.GetCurrent(Page) because the ajax manager is contained on my master page. I then have some properties exposed for the grid on my usercontrol so I am setting the ajax directly on the grid and not the usercontrol because i know you can't set ajax on a user control. Like I said, this works fine on one page but not another.

I've seen this issue many times where it ignores the first click, either refreshes the page or jumps the page to the bottom on the second click, and then starts working on the third click and thereafter. If it can start working the third click I don't understand why it wouldn't work for the first two clicks.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 25 Aug 2008, 01:43 PM
Hi rh,

I am sorry to hear that you experience such an odd issue but you will probably agree with me that it is very hard to identify the exact reason for it without a sample project to test/debug it locally. That is why I have to ask you isolate such a demo and send it attached to this support ticket. Thus I will examine your complete code logic carefully and will do everything possible to trace the cause of the erroneous behavior and eliminate it accordingly.

Thank you in advance for your cooperation and understanding.

Kind regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
rh
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or