Can't Ajaxify TWO RadMenus on the same Page

4 posts, 0 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 11 Mar 2010 Link to this post


    Hi,

    I've a button and two RadMenus on my Page. The RadAjaxManager is telling to ajaxify the Menus when the button is clicked.

    Why just one RadMenu is being ajaxified ??

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="true"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="US_IB"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" LoadingPanelID="" />  
                            <telerik:AjaxUpdatedControl ControlID="RadMenu2" LoadingPanelID="" />  
                    </telerik:AjaxSetting>                                                                                                               
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

  2. Pavlina
    Admin
    Pavlina avatar
    6184 posts

    Posted 16 Mar 2010 Link to this post

    Hi Nuno,

    I examine the provided code and it is working as expected. Please find a simple runnable application which handles the desired functionality. Give it a try and let me know what is the difference in your case.

    Regards,
    Pavlina
    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.
  3. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 17 Mar 2010 Link to this post


    Hello Pavlina,

    Thank you for your help.
    Indeed you simple application works correctly, but not in my case.

    My RadAjaxManager looks like:

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="true" > 
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadMenu1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="ContentPanel" LoadingPanelID="MainFrameLP" />                
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="US_IB"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" LoadingPanelID="TocLP" />  
                            <telerik:AjaxUpdatedControl ControlID="ContentPanel" LoadingPanelID="MainFrameLP" />        
                            <telerik:AjaxUpdatedControl ControlID="HeaderImage" /> 
                            <telerik:AjaxUpdatedControl ControlID="Rotator1" />     
                            <telerik:AjaxUpdatedControl ControlID="RadMenu2" />                             
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                         
                    <telerik:AjaxSetting AjaxControlID="PT_IB"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" LoadingPanelID="TocLP" />    
                            <telerik:AjaxUpdatedControl ControlID="ContentPanel" LoadingPanelID="MainFrameLP" />       
                            <telerik:AjaxUpdatedControl ControlID="HeaderImage" />    
                            <telerik:AjaxUpdatedControl ControlID="Rotator1" />      
                            <telerik:AjaxUpdatedControl ControlID="RadMenu2" />                             
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                                                                                                     
                    <telerik:AjaxSetting AjaxControlID="B_IB"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="ContentPanel" LoadingPanelID="MainFrameLP" />                                                                          
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                          
                    <telerik:AjaxSetting AjaxControlID="H_IB"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="ContentPanel" LoadingPanelID="MainFrameLP" />                                                                          
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                                                                                                               
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

    Before adding the lines: <telerik:AjaxUpdatedControl ControlID="RadMenu2" /> everything was running ok.

    Now I get this JS exception:

    Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. 
    Details: Error parsing near 'ype="hidden" /> 
    </div>|56|updatePanel|R'. 
    Line: 6 
    Char: 62099 
    Code: 0 
    URI: http://localhost:22991/SLBH/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3a19620875%3a3f6e8f3f%3ae330518b%3a1e771326%3ac8618e41%3a86526ba7%3a874f8ea2%3ab7778d6c%3a82923ac3%3aaa288e2d 

    Can you help me to figure out how to solve this ?

    Best regards,
    Nuno

  4. Pavlina
    Admin
    Pavlina avatar
    6184 posts

    Posted 17 Mar 2010 Link to this post

    Hello Nuno,

    Please review the following help topic which elaborates on this kind of errors. Test the proposed approaches and let us know if this helps.

    Best wishes,
    Pavlina
    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.
Back to Top