OnSelectedIndexChanged & EnableAutomaticLoadOnDemand

2 posts, 0 answers
  1. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 25 Jul 2011 Link to this post

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

    Posted 27 Jul 2011 Link to this post

    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.

Back to Top