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

RadAjaxManager and ScriptManager

5 Answers 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rabeeh
Top achievements
Rank 2
Rabeeh asked on 25 Sep 2008, 07:51 AM
Hi,

I have developed a WebParts page using RadDock control ( 2007 version ) and I have used RadAjaxManager ( 2007 version) to queue Ajax requests ( using SetMaxRequestQueueSize of the RadAjaxManager) for each Dock in the DockZone.

I load each user control in a specific dock ( The RadGrids used in the userControls is also the 2007 version).

Lately, I have downloaded Q2 2008 and this requires for grids to have a scriptmanager on the page.

But I can't put one on the page because it already contains a RadAjaxManager, I get a javascript error stating that Script has been initialized twice or something like that.

I know I can put the new RadAjaxManager but I will lose the SetMaxRequestQueueSize and the Mechanism won't work anymore.

The weird thing is that when there is like 4 docks on the page, it tells me that it requires a scriptmanager when there is like 6 or more the grids inside docks detected the RadAjaxmanager placed on the page and it works well.

Any Suggestions, thanks

5 Answers, 1 is accepted

Sort by
0
Joseph
Top achievements
Rank 1
answered on 25 Sep 2008, 12:27 PM
I guess my only solution ( I am friend of Rabeeh ), is to revert to the old Grids ( RadGrid.NET2) that doesn't requires ScriptManager and use the new ones outside the grid...

0
Maria Ilieva
Telerik team
answered on 25 Sep 2008, 02:21 PM
Hi Joseph,

Unlike the previous version of RadAjax, multiple requests are no longer supported - this is another ASP.NET AJAX limitation. E.g. if you start one request, subsequent are ignored until the first response is received.
Could you please elaborate a little bit more on the exact error you are facing when you place ScriptManager on the page. Does the error appear if an asp ScripManager is used instead of RadScriptManager?

Regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joseph
Top achievements
Rank 1
answered on 25 Sep 2008, 06:08 PM
Hi Maria,

If I replace the RadAjaxManager with a scriptmanager, none of the UserControls will be loaded inside the docks cause I am using the RadAjaxManager to buffer the requests.

If I place the RadAjaxManager with the scriptmanager I get a javascript error that initialization cannot be done twice.

With RadAjaxManager alone,I am getting an error message that Grid needs a scriptmanager on the page.

I cannot remove the RadAjaxManager because I will loose the Sequential loading.

It is a dead loop...
0
Maria Ilieva
Telerik team
answered on 26 Sep 2008, 08:30 AM
Hi Joseph,

Excuse my previous answer and the misleading information I posted.

The latest version of RadAjax actually provides RequestQueueSize property which provides multiple requests functionality. This means that you could upgrade the AjaxManager to the latest one and acheive the required scenario.

Please review the following help topic which further elaborate on this matter.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joseph
Top achievements
Rank 1
answered on 26 Sep 2008, 03:42 PM
Hi Maria,

Thanks for the heads up.

I thought this property was removed in Q1 2008 release.

anyway, thanks for your fast support.

Joseph.  
Tags
General Discussions
Asked by
Rabeeh
Top achievements
Rank 2
Answers by
Joseph
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or