This is a migrated thread and some comments may be shown as answers.
OnSelectedIndexChanged & EnableAutomaticLoadOnDemand
1 Answer 36 Views
This is a migrated thread and some comments may be shown as answers.
Najid Hanif
Top achievements
Rank 2
Najid Hanif asked on 25 Jul 2011, 09:01 PM
I have a drop down that holds around 6000 items. 

If EnableAutomaticLoadOnDemand is set to "True" OnSelectedIndexChanged for RadComboBox1.SelectedItem is NULL.
This is not the case if EnableAutomaticLoadOnDemand is set to "False"

Because I have so many items in my dropdown I have EnableAutomaticLoadOnDemand set to "True". Is this expected behavior? and if so how can I workaround this?


Here are the properties I have set on the Combo-box.

<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="400px"
                           Width="750px" MarkFirstMatch="true" DataSourceID="SessionDataSource1"
                           EnableLoadOnDemand="true" OnItemDataBound="RadComboBox1_ItemDataBound"
                           ShowMoreResultsBox="true" EnableVirtualScrolling="true" ItemsPerRequest="20"
                           EnableAutomaticLoadOnDemand="True" DataTextField="AssetDescription"
          style="margin-bottom: 0px" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_IndexChanged"

1 Answer, 1 is accepted

Sort by
Dimitar Terziev
Telerik team
answered on 27 Jul 2011, 02:20 PM
Hi Najid,

The experienced behavior is the default one, when load on demand is used. Please refer to the following help article discussing this matter.

When using load on demand, the items of the RadCombobox are not presented on the server-side and you could access only the Text and SelectedValue of the control.

All the best,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Asked by
Najid Hanif
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Share this question