RadAjaxManager & Invisible Controls

5 posts, 0 answers
  1. Eng.Bassel Samman
    Eng.Bassel Samman avatar
    25 posts
    Member since:
    Oct 2008

    Posted 16 Jan 2011 Link to this post

    Dears,
    I have two comboboxes in page with RadAjaxManager, in the page Load event I hide one of them. I add the following:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="cmbHR_DOCS_ID_START" UpdatePanelRenderMode="Inline" />
                       <telerik:AjaxUpdatedControl ControlID="cmbHR_DOCS_ID" UpdatePanelRenderMode="Inline" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </AjaxSettings>
       </telerik:RadAjaxManager>

    When user add a new value two one of the comboes (in a RadWindow) I refresh the data in them by calling:
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(x);

    Because one of the combos is invisible I got an ajax error (I think you know).
    I know that I can't add two RadAjaxManager in one page so I tried to add AjaxUpdatedControl to the RadAjaxManager at runtime in the Page Load event but it didn't work.

    Could you please help in?
    Best Regards
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Jan 2011 Link to this post

    Hi,

    Note that adding an invisible control into the RadAjaxManager settings is not supported scenario and may lead to a lot of different issues. You should add all invisible controls into always visible containers (asp Panel for example) and add those containers into the RadAjaxManager settings.

    Best wishes,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Jan 2011 Link to this post

    Hi,

    Note that adding an invisible control into the RadAjaxManager settings is not supported scenario and may lead to a lot of different issues. You should add all invisible controls into always visible containers (asp Panel for example) and add those containers into the RadAjaxManager settings.

    Best wishes,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  4. Vasssek
    Vasssek avatar
    186 posts
    Member since:
    Aug 2010

    Posted 18 Sep 2019 in reply to Maria Ilieva Link to this post

    Hello,

    theory is nice, but how to ajaxify e.g. RadGrid contorl through ajaxmanager, when you have RadMultiPage with some RadPageViews and RadGrid control is placed inside, let's say into second RadPageView and RadMultiPage has set RenderSelectedPageOnly = true. Because of not visible RadGrid js error has been appeared:Sys.ArgumentNullException: Value cannot be null.Parameter name: panelsCreated[4]

    Regards

    Vasssek

     

  5. Eyup
    Admin
    Eyup avatar
    3892 posts

    Posted 23 Sep 2019 Link to this post

    Hello Vasssek,

     

    You have 2 options here:

     

    1. (Recommended): Ajaxify the entire RadMultiPageView and RadTabStrip with a single RadAjaxPanel

     

    2. Remove the RadAjaxPanel and use RadAjaxManager instead:

    https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/troubleshooting/tips-and-tricks-for-ajaxifying-specific-controls#ajaxifying-radmultipage-and-radtabstrip-controls

     

    3. Put the grid in a visible panel and ajaxify it instead:

    https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/troubleshooting/tips-and-tricks-for-ajaxifying-specific-controls#ajaxifying-invisible-controls

     

    4. (Not tested) Ajaxify the grid using its PreRender event handler by adding the AjaxSettings programmatically:

    https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/how-to/add-ajaxsettings-programmatically

     

    I hope this will prove helpful. Let me know if I can assist with anything else.

     

    Regards,
    Eyup
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top