Note that there are some explanatory texts on larger screens.

plurals
  1. POTelerik: LoadOnDemand not working proerply
    primarykey
    data
    text
    <p>I have a LinqDataSource and a RadComboBox set up, so that the combobox shows the query results on demand. The table has 1000 or so rows and it takes a lot of time to load that page because for some reason RadComboBox keeps loading everything.</p> <p>So what is wrong with the code below? I have nothing regarding cbAuto in the code-behind file</p> <pre><code>&lt;asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Webshop.Entities" EntityTypeName="" OrderBy="Name, FromDate, TillDate" Select="new (AutoID, Name, FromDate, TillDate, Comment)" TableName="Autos"&gt; &lt;/asp:LinqDataSource&gt; &lt;telerik:RadComboBox ID="cbAutos" runat="server" Width="900px" DropDownWidth="900px" EmptyMessage="Chosse an autotype" HighlightTemplatedItems="True" Filter="Contains" LoadingMessage="Loading..." DataTextField="Name" MaxHeight="300px" DataValueField="AutoID" ShowDropDownOnTextboxClick="False" DataSourceID="LinqDataSource1" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ItemsPerRequest="100"&gt; &lt;HeaderTemplate&gt; &lt;table style="width: 850px;"&gt; &lt;tr&gt; &lt;td style="width: 300px;"&gt;Autotype&lt;/td&gt; &lt;td style="width: 100px;"&gt;Date (from)&lt;/td&gt; &lt;td style="width: 100px;"&gt;Date (till)&lt;/td&gt; &lt;td style="width: 150px;"&gt;Comment&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;table style="width: 850px;"&gt; &lt;tr&gt; &lt;td style="width: 300px;"&gt; &lt;%# DataBinder.Eval(Container.DataItem, "Name")%&gt; &lt;/td&gt; &lt;td style="width: 100px;"&gt; &lt;%# DataBinder.Eval(Container.DataItem, "FromDate")%&gt; &lt;/td&gt; &lt;td style="width: 100px;"&gt; &lt;%# DataBinder.Eval(Container.DataItem, "TillDate")%&gt; &lt;/td&gt; &lt;td style="width: 150px;"&gt; &lt;%# DataBinder.Eval(Container.DataItem, "Comment")%&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/ItemTemplate&gt; &lt;/telerik:RadComboBox&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    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