ComboBox not accepting selection

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    4 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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.
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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
  3. Kevin
    Kevin avatar
    4 posts
    Member since:
    Jan 2013

    Posted 21 Feb 2013 Link to this post

    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.
  4. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 26 Feb 2013 Link to this post

    Hello Brian,

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

    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.
Back to Top