This is a migrated thread and some comments may be shown as answers.
RadAjaxManager & Invisible Controls
4 Answers 84 Views
This is a migrated thread and some comments may be shown as answers.
Eng.Bassel Samman
Top achievements
Rank 2
Eng.Bassel Samman asked on 16 Jan 2011, 09:01 AM
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

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 17 Jan 2011, 05:07 PM
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.
0
Maria Ilieva
Telerik team
answered on 17 Jan 2011, 05:07 PM
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.
0
Vasssek
Top achievements
Rank 1
answered on 18 Sep 2019, 03:08 PM

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

 

0
Eyup
Telerik team
answered on 23 Sep 2019, 12:50 PM

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.
Tags
Ajax
Asked by
Eng.Bassel Samman
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Vasssek
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or