简体   繁体   中英

Setting an initial value in RadComboBox while using Load on Demand

My combo is empty until I click the dropdown (items request event is fire): so what is the best strategy to set an initial item (value and text) in RadComboBox while using Loading on Demand?

Thx

I think you need to be sure your EnableLoadOnDemand is set to "true". If it is false (perhaps missing?) it will look like your drop down is empty till you click on the bottom of an empty search box. Below is a bit of code that might help.

<telerik:RadComboBox ID="Category" runat="server" Width="175px" Height="150px"
    EmptyMessage="Select a Category" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
    EnableVirtualScrolling="true" >
    <WebServiceSettings Method="GetCategory" Path="GetCategory.asmx" />
</telerik:RadComboBox>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM