Selected Item Disappears

4 posts, 0 answers
  1. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 24 Mar 2011 Link to this post

    Hello,

    For a ComboBox like this:

    <telerik:RadComboBox ID="Persons" runat="server" DataTextField="Name" DataValueField="Id" MarkFirstMatch="true" AppendDataBoundItems="true">
        <Items>
            <telerik:RadComboBoxItem runat="server" Value="0" Text="" />
        </Items>
    </telerik:RadComboBox>

    When I select an item then click somewhere else, the combobox seems to reset or clear the selection. This is happening with various comboboxes on my page.

    How can I get the selected item to stay where it should? There is no postback or anything. This happens on the client side and the control binds with data with no issue.

    Richard
  2. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 24 Mar 2011 Link to this post

    Actually, I opened a support ticket (407395) as you need to see the issue in action I think. Look at Dealer, Status and Code Code.

    Thanks,
    Richard
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 29 Mar 2011 Link to this post

    Hello Richard Weeks,

    Usually this behaviour appears when there are RadComboBox items with same values.
    The values of RadComboBox items need to be unique - please find more details about this topic here.

    All the best,
    Kalina
    the Telerik team
  5. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 29 Mar 2011 Link to this post

    I think this might be what happened. On a new push of data to the databasek, the problem disappeared.

    I'll keep an eye on it but my tentative thanks for now :)

    Richard
Back to Top