AllowCustomText = false and EnableLoadOnDemand = true

2 posts, 0 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 30 Sep 2011 Link to this post

    Hi,
    Is there a way to disable custom text when the combobox has enableloadondemand  = true?

    <telerik:RadComboBox ID="radComboBoxPlaces" runat="server"
            AppendDataBoundItems="true"
            EnableLoadOnDemand="true"
            EnableTextSelection="false"
            OnItemsRequested="ComboBoxPlaces_ItemsRequested"
            OnClientItemsRequesting="itemRequesting" AllowCustomText="false">
            <Items>
                     <telerik:RadComboBoxItem  Text="Välj plats..." Value="" />
            </Items>
    </telerik:RadComboBox>

    Regards,
    Mattias
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Sep 2011 Link to this post

    Hello Mattis,

    When you load the combobox items on demand (in the ItemsRequested event) the AllowCustomText property is enabled by default. You cannot disable it as this would break the load-on-demand mechanism.

    Please take a look into the following help article for more on this.
    AllowCustomText cannot be disabled when loading items on demand.

    Thanks,
    Shinu.
Back to Top