简体   繁体   中英

How can I load data into a RadComboBox via AJAX without using Load On Demand?

I have a page containing five RadComboBoxes that all need to populated from a database (via SQL Server stored procedure). Currently they are bound to the data using the OnLoad event, but that causes the page to load slowly. I am required to use other features of the RadComboBox (specifically checkboxes) that, according to Telerik's docs, are not compatible with the built-in LoadOnDemand feature.

How would I mimic the LoadOnDemand feature to reduce the load time of the page?

Thanks!

This is correct, yes, but you still can use the ItemTemplate and put a checkbox element there and use it with Load on Demand.

See the first combobox in this demo:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

It will require some more work from you in order to define the template and then manually get the checked items, but it is not impossible.

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