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

Selecting Item issue

1 Answer 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 30 Aug 2013, 01:16 PM
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"
                            TabIndex="12">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="ED Admit No Doc" Value="0" />
                            </Items>
                        </telerik:RadComboBox>

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 
EnableVirtualScrolling="False"
                            EnableAutomaticLoadOnDemand="False"

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


1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 04 Sep 2013, 11:01 AM
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.

Regards,
Hristo Valyavicharski
Telerik
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.
Tags
ComboBox
Asked by
Ryan
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or