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

AllowCustomText = false and EnableLoadOnDemand = true

1 Answer 233 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 30 Sep 2011, 10:30 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Sep 2011, 11:02 AM
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.
Tags
ComboBox
Asked by
Mattias
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or