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

RadCombobox stopped getting values

1 Answer 87 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Erol Turk
Top achievements
Rank 1
Erol Turk asked on 03 Feb 2012, 01:50 PM
Hello 
I am using Radcontrols on Telerik ASP.net Controls version 2009.2.826.35 and our combobox code stopped working with error code
Telerik.Web.UI.WebResource.axd:15Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

My code of that part can be seen here.  
     <telerik:RadComboBox ID="ddlRoom" runat="server" Style="width: 55px" OnClientSelectedIndexChanged="OnRoomAmountChange">
                        <Items>
                            <telerik:RadComboBoxItem Value="1" Text="1" />
                            <telerik:RadComboBoxItem Value="2" Text="2" />
                            <telerik:RadComboBoxItem Value="3" Text="3" />
                            <telerik:RadComboBoxItem Value="4" Text="4" />
                            <telerik:RadComboBoxItem Value="5" Text="5" />
                        </Items>
     </telerik:RadComboBox>
 
 
function OnRoomAmountChange() {
            var radRoom = $find('<%= ddlRoom.ClientID %>');
            if (radRoom == null) return;
            var numberOfRoom = parseInt(radRoom.get_value());
            if (numberOfRoom == undefined || isNaN(numberOfRoom)) numberOfRoom = 1;
            var count = 1;
            $('.RoomArea').hide();
            $('.RoomArea').each(function() {
                $(this).show();
                if (count == numberOfRoom) return false;
                count++;
            });
        }

working (meant not working ) sample can be found at 

http://detur.se/125/HotelDetailResult.aspx when selecting "Rum" number different than 1. 




1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 06 Feb 2012, 12:19 PM
Hi Erol,

Thanks for the live url. I noticed that there is a javascript error that occurs when the page is loaded (see the attached image) that might be causing the improper behavior of the site. Try to fix it and see how it goes.  Unfortunately, the version of the Telerik controls that you are using is no longer under development and does not support the latest versions of the common browsers (please refer to this post that explains in details the life cycle of our controls). In order to get adequate support for the latest browsers it is needed to upgrade to the asp.net ajax controls.

Kind regards,
Kate
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ComboBox
Asked by
Erol Turk
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or