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

ComboBox not accepting selection

3 Answers 59 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 21 Feb 2013, 07:42 PM
I have two RadComboBox controls on a page and both of them are being fed from the same XML Data Source. When I select an item from the list and then click on the next ComboBox or anywhere else on the page, the selection goes back to the original selection which is always just the first item in the list. The selected item never holds. This is true for both ComboBox controls and I cannot figure out why.

I did just find out that if I tab through each control and use my arrow keys to select the items, then the selections will hold, but not if I use my mouse.

3 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 21 Feb 2013, 08:21 PM
Hi Brian,

Are you doing a postback (or trying to do a callback) on the page when the OnClientSelectedIndexChanged event fires? A postback would be the cause of a RadComboBox redisplaying its default item. If this doesn't sound like anything you have attempted to do, then posting your code will definitely help in debugging your issue.

Hopefully this helps,
Master Chief
0
Kevin
Top achievements
Rank 1
answered on 21 Feb 2013, 09:26 PM
I am not doing any kind of postback. All my work is being done in Server Side code when a button clicks.

Here is the RadComboBox tag:

<telerik:RadComboBox ID="DDLPrimary" runat="server" Width="220px" DataSourceID="XMLSegmentsSource" DataTextField="name" DataValueField="value"></telerik:RadComboBox>

and here is the XMLDataSource in case you need it:

<asp:XmlDataSource ID="XMLSegmentsSource" runat="server" DataFile="~/App_Data/CustomerSegments.xml" XPath="CustomerSegments/Segment"></asp:XmlDataSource>

If you need the code behind, I can make that available too, but this happening before the button clicks.
0
Dimitar Terziev
Telerik team
answered on 26 Feb 2013, 08:51 AM
Hello Brian,

Could you open a support ticket and provide a runnable sample so we could inspect and troubleshoot the problem locally?

Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or