Selecting Item issue

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    52 posts
    Member since:
    Sep 2010

    Posted 30 Aug 2013 Link to this post

    I have a radcombobox

    <telerik:RadComboBox ID="cboReferring" runat="server" DataSourceID="dsReferringDocs"
                                DataTextField="DisplayName" DataValueField="PCPID" Width="300px" ShowMoreResultsBox="true"
                                ItemsPerRequest="10" AppendDataBoundItems="True" EnableVirtualScrolling="False"
                                EnableAutomaticLoadOnDemand="False" EmptyMessage="Select a Referring Provider"
                                    <telerik:RadComboBoxItem runat="server" Text="ED Admit No Doc" Value="0" />

    From my code behind I try to select a value by

    cboReferring.SelectedValue = coreData.Nz(dr("sReferringProviderNumber").ToString(), "")

    The only way I could get it to selected value to select an item is to turn off the 

    If these are set to true, then it wil not select any item.  

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Sep 2013 Link to this post

    Hi Ryan,

    This behavior is expected. When use Load On Demand or Virtual Scrolling items are loaded on portions for better performance. That's why combo does not contain all items and selection is not working. This is a limitation of the RadComboBox.

    Hristo Valyavicharski
    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 the blog feed now.
Back to Top