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

New bug for items that end with a space

3 Answers 35 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 27 May 2010, 11:04 AM
Hi,

I've managed to find a bug with the combo boxes.  It appears that if the Item text ends with a space (and possibly certain other characters) then javascript and server side code cannot get the selected value from a combo box.

I combine first and surname fields using the following:
COALESCE(FirstName+' ','') + COALESCE(Surname,'')
on some entries there is only a first name and for these the combo box fails.

When testing I found that if I then added a space after the surname then these would fail as well.

Sample code follows:

<telerik:RadComboBox ID="uxContact" Runat="server"  EmptyMessage=" - Select a Client - " AllowCustomText="true" CssClass="fullWidthComboBoxSP" onclientselectedindexchanging="LoadContactChildren" onitemsrequested="uxContact_ItemsRequested" OnClientItemsRequested="DropDownLoaded" MarkFirstMatch="True"></telerik:RadComboBox> 
 
JS  
uxContact = $find('uxFormView_uxContact');  
alert(uxContact.get_value());  
 
VB.NET  
DirectCast(uxFormView.FindControl("uxContact"), RadComboBox).SelectedValue 
I am currently using version 2010.1.519.35

I can get a partial work around by changing by SQL for the time being but obviously this is a problem with the control itself.  It's only started happening since I applied the latest update.

Any idea when a fix can be made (or if indeed a fix has been made on a more recent compilation).

Regards,

Jon


3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 28 May 2010, 01:53 PM
Hi Jon,

I was unable to recreate the issue with the latest version of Telerik.Web.UI.

Please see my test page which I attached to this message. Can you reproduce the issue with it on your side? If so, how?

All the best,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Thai Thuong
Top achievements
Rank 1
answered on 28 Jul 2010, 11:55 AM
i have got this error too.  In client-side, i can alert the selected value, but in server-side it return empty "".
But everything well when i put the properties "AutoPostback=true".
Im using version 2010.1.519.35
Please help...
0
Simon
Telerik team
answered on 29 Jul 2010, 03:37 PM
Hello Thai Thuong,

Please see my previous response. Can you reproduce the issue with the latest version of Telerik.Web.UI?

Best wishes,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Simon
Telerik team
Thai Thuong
Top achievements
Rank 1
Share this question
or