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

ComboBox not enabled inside AjaxPanel

1 Answer 8 Views
AjaxPanel
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 22 Aug 2019, 10:25 AM

Hello,

I'm to use two ComboBoxes to configure country and city. To prevent the whole page to reload on update the city combobox I want ot use an AjaxPanel with UpdatePanel. This AjaxPanel is surrounded by another AjaxPanel with UpdatePanel. The second AjaPanel is inise a Control which is laded dynamically depending on a selected item of a RadTreeView. The structure (splitted over several controls) looks like this:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">

            ....

                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="LoadingPanel2">
                    <asp:UpdatePanel ID="locationpanel" runat="server">

                         .....

                              the two ComboBoxes

 

I tried this scenarios to make it work:

- I added a RadAjaxManager inside the mater page with AjaxSettings to update the second ComboBox when the first has changed. The result is that the page is completely empty

- Removed the settings from the RadAjaxManager -> still empty

- Added UpdateMode="Conditional" to the second UpdatePanel -> the page is shown and also the ComboBoxes but they dont work - the drropdown menue is not working

- Added Triggers to the second AjaxPanel -> the same result as without Triggers

I also added asp:DropDownLists and they work as they should, but when i make changes on the Lists i get a LAbel ubove the Listboxes saying "5843|updatePanel|ctl00_MainContent_ctl00_Person1_RadPanelBar1_i0_locationpanel| " 

 

As it's a little bit complicated i uploaded the file to my cloud

https://cloud.fee.de/index.php/s/SIpowivPPpIXpWC

 

I really hope that you can help me solve the problem with the ComboBoxes. Many thanks in advance for your help.

 

Greetings,

Stephan

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 27 Aug 2019, 07:15 AM

Hi Stephan,

Nesting AjaxPanels (and UpdatePanels) leads to nested ajax requests which are cancelling each other, making this scenario highly not recommended and not supported. When two AJAX requests are triggered at the same time they are cancelling each others, and neither one of the requests finishes the related updates. Can you remove all nested Ajax/update panels on the page and see if the issue persists (keeping only the outer most will be enough to update all inner controls)?

Regards,
Vessy
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
AjaxPanel
Asked by
Stephan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or