I have a radlistbox that's populated with all the employees in the company. The first 6-ish listings can be selected and the following button for inserting the entry will fire fine. But once something further down the list is selected the button no longer responds to clicks. RadListBox and RadButton markups are as follows:
7 Answers, 1 is accepted
AJAX may sometimes hide both server and client-side errors. Therefore, when developing your app, we highly recommend you to ensure that the functionality works without adding AJAX. Please temporarily disable any AJAX on the page if present (RadAjaxManager, RadAjaxPanel, UpdatePanel, RadXmlHttpPanel, etc.) and enable your script debugger (FireBug or F12) to see whether there are any script or server errors interfering, and make sure that the application works without AJAX.
If this is not the case, you can create a very basic isolated sample including the RadListBox and RadButton definition demonstrating the problematic behavior and send it back to us for further investigation. This will enable us to replicate the issue locally and provide more precise suggestions.
Telerik by Progress
I've removed the AJAX from the page, and have gone through the events in debugging mode. The incorrect behavior remains, but when getting the incorrect behavior I now get an "Input string was not in correct format" error on page load. The thing is, the event never fired. Snippet of the code being fired when working below:
Stepping through the code when an early entry is selected it fires fine and all the variables are correctly assigned and checked. Selecting the last entry triggers a postback but doesn't fire the event and gives the following error:
The ListBox and Button markups remain as before, the Listbox is populated via code-behind from a SQL Database table with over 1000 entries and 52 columns including the ID. The query string for said population is as follows:
Any help would be greatly appreciated.
To assist you further, we will need to replicate and analyze the mentioned issue locally. Please open create a very basic isolated version of this scenario and open a formal support thread to send it back to us for further investigation.
Telerik by Progress
It turns out the Skin="Metro" portion of the RadListBox markup causes the bug. I'll work on building an isolated example site and send it via ticket.
I can't seem to reproduce the bug in a new project so some clarification:
The bug occurs in a site using Telerik references from 2013 and only when the RadListBox Skin is set to Metro. Removing the Skin setting from the HTML markup resolves the bug and everything works as it should. Hopefully this just means it's an old issue that's already been resolved.