Hi,
In Page_Load I do this:
Then I call this in my javascript: (this is C# code that builds the JS to be registered.
The $find is returning the componenet correctly, and there is no error in the JS.
However, my server-side function "RefreshTransactionQuery" is not being called at all.
Any help would be appreciated,
Thanks,
Richard
In Page_Load I do this:
RadAjaxManager1.AjaxRequest += RefreshTransactionQuery;
Then I call this in my javascript: (this is C# code that builds the JS to be registered.
$find('" + RadAjaxManager.GetCurrent(Page).ClientID + "').ajaxRequest(control);
The $find is returning the componenet correctly, and there is no error in the JS.
However, my server-side function "RefreshTransactionQuery" is not being called at all.
Any help would be appreciated,
Thanks,
Richard
5 Answers, 1 is accepted
0

Richard
Top achievements
Rank 1
answered on 01 Oct 2010, 10:07 AM
Does nobody have any ideas on this?
0
Hello Richard,
As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.
Kind regards,
Maria Ilieva
the Telerik team
As the provided information is not enough to isolate the root cause of the issue you are facing, please prepare a simple, fully runnable reproduction demo, open a new support ticket and send it to us along with very detailed reproduction steps and explanations and we will debug it locally and we will do our best to help.
Kind regards,
Maria Ilieva
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
0

Richard
Top achievements
Rank 1
answered on 14 Oct 2010, 02:01 PM
I see this answer quite a lot on your forums as I look for solutions, and quite frankly, it's not a helpful one.
I understand that, for the most part, your controls work fine in smaill, isolated environments with no complications. If this was what our apps looked like, we wouldn't NEED your controls to start with.
I also understand that the code snippets above don't highlight an error, they DO however, exclude certain first-guess possible candidates, which is why they're useful to deciding what the error is.
The kinds of response I expect to questions like this are more along the lines of:
If the server-side function is not being called, it could be that you have more than one RadAjaxManager on the page (I don't) - or that you are in a postback instead of a callback (I'm not).
Perhaps you could even tell us how to detect these cases, and how to fix them.
Of course, it is impossible 9/10 times to recreate the errors in simple solutions, as they're due to the necessarily complex environments in which we develop.
Several weeks later, I am still struggling to fix this issue. I thought I had it once, but it's gone mysteriously back to not working since, and I'm sick of wasting my time debugging your code. What's more, I now have two child objects of this base class behaving in two different (both wrong) ways, with the same method calls. The other has a problem I've seen a few times (with this same stock answer from you) - namely that the ClientID on the RadAjaxManager is null at run-time.
Do you have any useful comments please?
I understand that, for the most part, your controls work fine in smaill, isolated environments with no complications. If this was what our apps looked like, we wouldn't NEED your controls to start with.
I also understand that the code snippets above don't highlight an error, they DO however, exclude certain first-guess possible candidates, which is why they're useful to deciding what the error is.
The kinds of response I expect to questions like this are more along the lines of:
If the server-side function is not being called, it could be that you have more than one RadAjaxManager on the page (I don't) - or that you are in a postback instead of a callback (I'm not).
Perhaps you could even tell us how to detect these cases, and how to fix them.
Of course, it is impossible 9/10 times to recreate the errors in simple solutions, as they're due to the necessarily complex environments in which we develop.
Several weeks later, I am still struggling to fix this issue. I thought I had it once, but it's gone mysteriously back to not working since, and I'm sick of wasting my time debugging your code. What's more, I now have two child objects of this base class behaving in two different (both wrong) ways, with the same method calls. The other has a problem I've seen a few times (with this same stock answer from you) - namely that the ClientID on the RadAjaxManager is null at run-time.
Do you have any useful comments please?
0
Hi Richard,
I used your code in a simple web site but as you supposed the issue is not replicable. Therefore I suggest that you share a bit more information on your scenario: Where is the RadAjaxManager defined, where is the preceding code placed? However the javascript code is executed, when debugging does the Page_load fire and if you override the Page RaisePostBackEvent, does it fire as well?
Also, try the attached sample and let me know of all differences you can think of in your case.
All the best,
Iana
the Telerik team
I used your code in a simple web site but as you supposed the issue is not replicable. Therefore I suggest that you share a bit more information on your scenario: Where is the RadAjaxManager defined, where is the preceding code placed? However the javascript code is executed, when debugging does the Page_load fire and if you override the Page RaisePostBackEvent, does it fire as well?
Also, try the attached sample and let me know of all differences you can think of in your case.
All the best,
Iana
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
0

Richard
Top achievements
Rank 1
answered on 19 Oct 2010, 01:12 PM
Thank you for your reply, this approach looks like it may have led me to an answer, unfortunately I have had to move on and chosen to implement this without Rad controls.
For the benefit of future users, I have traced the problem this far:
My AjaxManager is defined in a BasePage class, with no aspx file, so it is defined as a member of the page class. I then initialise it in the "OnInit" event (RAM = new RadAjaxManager();).
It seems it's not being added to the page's "Items" collection, nor is "Page" on the AjaxMgr being set. The AjaxMgr's Page_Init event seems not to be fired.
This is as far as I've been able to get, and couldn't force it to add itself to the collection (I tried doing that in code the hard way, but it didn't help the "RadAjaxManager.FindCurrent" to return anything
Thanks,
Richard
For the benefit of future users, I have traced the problem this far:
My AjaxManager is defined in a BasePage class, with no aspx file, so it is defined as a member of the page class. I then initialise it in the "OnInit" event (RAM = new RadAjaxManager();).
It seems it's not being added to the page's "Items" collection, nor is "Page" on the AjaxMgr being set. The AjaxMgr's Page_Init event seems not to be fired.
This is as far as I've been able to get, and couldn't force it to add itself to the collection (I tried doing that in code the hard way, but it didn't help the "RadAjaxManager.FindCurrent" to return anything
Thanks,
Richard