Note that there are some explanatory texts on larger screens.

plurals
  1. POBind large number of data to a combobox?
    primarykey
    data
    text
    <p>I want to bind list of employees in drop down list , with autocomplete feature so the user can search the proper name .i use <a href="http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx" rel="nofollow noreferrer">RadComboBox</a></p> <p>I have two main problems :</p> <p>1- The list is so large about <code>5000</code> item.so binding this large number of data in the browser make it hang or so slow.(performance issue)</p> <p>According to the Telerik Documentation</p> <blockquote> <p>Set a data source to the RadComboBox. Use either DataSourceID or the DataSource property to do this and set the DataTextField and DataValueField properties to the respective fields in the data source. (Note that when using DataSource you must set the property on each postback, most conveniently in Page_Init.) Set EnableAutomaticLoadOnDemand to true.</p> </blockquote> <p>so i have to call the following method every time in <code>Page_Init</code> !!!</p> <pre><code> protected void BindInnerInstructors() { ddl_inner_sup.Items.Clear(); ddl_inner_sup.DataSource = Utilities.GetAllInnerInstructors(); ddl_inner_sup.DataValueField = "emp_num"; ddl_inner_sup.DataTextField = "name"; ddl_inner_sup.DataBind(); } </code></pre> <hr> <p>2- Object reference not set to an instance of an object when trying to set the selection of a combo box.</p> <p>i overcome this problem through <a href="https://stackoverflow.com/a/15224656/418343">this</a>.</p> <hr> <p>I have about <code>4</code> dropdowlists but every one have to bind in according to an event but i have to bind all of them in the <code>page_init</code>.</p> <p>I'll be grateful to a detailed answer to this problem .</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload