RadAjaxManager and ScriptManager

6 posts, 0 answers
  1. Rabeeh
    Rabeeh  avatar
    62 posts
    Member since:
    Sep 2007

    Posted 25 Sep 2008 Link to this post

    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
  2. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 25 Sep 2008 Link to this post

    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...

  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 Sep 2008 Link to this post

    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.
  4. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 25 Sep 2008 Link to this post

    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...
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Sep 2008 Link to this post

    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.
  6. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 26 Sep 2008 Link to this post

    Hi Maria,

    Thanks for the heads up.

    I thought this property was removed in Q1 2008 release.

    anyway, thanks for your fast support.

    Joseph.  
Back to Top