Can't Click Load-On-Demand items in RadComboBox

1 Answer 54 Views
ComboBox
Xiacon
Top achievements
Rank 1
Xiacon asked on 17 May 2021, 04:14 PM

We have one site where we are seeing an odd behavior in RadComboBox, that I've never seen in any of our other sites. 

We have a lot of radcomboboxes throughout this site, some of which have pre-defined items, or items added on page load in the code behind. These comboboxes all work perfectly fine, exactly as expected. 

A lot of the comboboxes however use load-on-demand to query items at runtime for the user's input. ALL of these comboboxes have the same problem. They seem to perform their AJAX postback fine, and get the correct data, and the items all get added to the combobox, showing the correct data. 

The problem though is that the load-on-demand items cannot be selected. You can't click on them, you can't even use the arrow-keys to up/down to them and select one. 

The Web Developer tools in the browser don't show any javascript failing to load on page load,
they don't show any errors in the Console tab on the initial page load, or the load-on-demand postback
they don't show any errors in the Network tab on the initial page load, or the load-on-demand postback

 

This project was originally written in ASP.NET 2.0, and we are upgrading it to 4.7.2.
Updated the latest Telerik DLLs, updated the latest jQuery libraries, updated the compilation nodes in the web.config.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 20 May 2021, 11:19 AM

Hello Xiacon,

Sometimes AJAX may hide both server and client-side errors. Can you, please, disable temporary the AJAX updates on the page and see if there will be any error thrown after that? Does the issue persist when the AJAX is disabled?

You can see how to achieve that easily here: 

https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/how-to-disable-ajax-temporarily

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Xiacon
Top achievements
Rank 1
commented on 20 May 2021, 03:11 PM

Turning off AJAX (disabled it on the RadAjaxManager) did not help with the issue at all. It still behaves the same. No errors shown anywhere when a load-on-demand request is made, and all the right data is showing in the dropdown, but you cannot actually click/select any of the items.

I don't know if it helps any, but here is the HTTP response data coming back from the load-on-demand call:

s[]_$$_<li class="rcbItem">&#160;</li><li class="rcbItem">OK - Item in good condition</li><li class="rcbItem">Excessed</li><li class="rcbItem">AP</li>_$$_3 items_$$_False_$$_

Comboboxes which are NOT load on demand, but have their items preloaded, still behave properly.
Vessy
Telerik team
commented on 25 May 2021, 12:41 PM

Hi Xiacon,

There is a possibility that the encrypted query string becomes too long and the server or firewall cut it, which makes it incorrect. Please check if increasing the allowed query string would fix the issue:

https://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/encrypt-telerik-webresource-querystring 

Example 2: Increasing the maximum query string length and URL length for an application:

. . . .
<httpRuntime maxRequestLength="204800" executionTimeout="36000" maxQueryStringLength="4096"/>
. . . .
<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="209715200" maxQueryString="4096" maxUrl="4096" />
    </requestFiltering>
</security>

Please, ensure as well that the query string-related values (maxQueryStringLength, maxQueryString, maxUrl) in the web.config are updated accordingly to a larger value.

You can also try enabling the CDN for the Telerik resources and see if that would have any effect?

 - https://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/cdn-support/overview  
 - https://docs.telerik.com/devtools/aspnet-ajax/controls/stylesheetmanager/cdn-support/overview 

If none of the above helps, please, open a primary support ticket and send us a live url where we can reproduce the issue and/or a Fiddler Jam capture, so we can examine the issue further?

Xiacon
Top achievements
Rank 1
commented on 01 Jun 2021, 05:59 PM

Increasing the various request lengths did not help.

And setting the CDN settings on broke everything. After doing that, menus (RadMenu) no longer drop down, and NO comboboxes even open up at all when clicking the drop-down arrow.

I will go ahead and set up a user with access to the system, and create a support ticket.
Tags
ComboBox
Asked by
Xiacon
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or