title: infinite scrolling on data from database
body: <p>I need help to populate the the drop down with infinite scrolling. I have created a normal dropdown in which all the data goes but it takes a lot of time to load the data. Here is my code.</p>
  
  <pre><code>function GetSelectedWorldList(){
  
     var el = $('#&lt;%=lstAvail.ClientID%&gt;');
      var selValues = [
      &lt;asp:Repeater ID="lstSelect" runat="server"&gt;
      &lt;ItemTemplate&gt;
      '&lt;%# Eval("slc_code")%&gt;'
      &lt;/ItemTemplate&gt;
      &lt;SeparatorTemplate&gt;
      ,
      &lt;/SeparatorTemplate&gt;
      &lt;/asp:Repeater&gt;
      ];
      console.log(selValues);
      $(el).select2("val", selValues);
  
  
  }
  </code></pre>