LoadOnDemand not working for me (properly)

4 posts, 0 answers
  1. Andris
    Andris avatar
    6 posts
    Member since:
    Aug 2012

    Posted 26 Jan 2013 Link to this post

    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.

    So what is wrong with the code below? I have nothing regarding cbAuto in the code-behind file
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Webshop.Entities" EntityTypeName="" OrderBy="Name, FromDate, TillDate" Select="new (AutoID, Name, FromDate, TillDate, Comment)" TableName="Autos"></asp:LinqDataSource>
     
     
    <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">
                                <HeaderTemplate>
                                    <table style="width: 850px;">
                                        <tr>
                                            <td style="width: 300px;">Autotype</td>
                                            <td style="width: 100px;">Date (from)</td>
                                            <td style="width: 100px;">Date (till)</td>
                                            <td style="width: 150px;">Comment</td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table style="width: 850px;">
                                        <tr>
                                            <td style="width: 300px;">
                                                <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                            </td>
                                            <td style="width: 100px;">
                                                <%# DataBinder.Eval(Container.DataItem, "FromDate")%>
                                            </td>
                                            <td style="width: 100px;">
                                                <%# DataBinder.Eval(Container.DataItem, "TillDate")%>
                                            </td>
                                            <td style="width: 150px;">
                                                <%# DataBinder.Eval(Container.DataItem, "Comment")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadComboBox>
  2. Nencho
    Admin
    Nencho avatar
    1872 posts

    Posted 30 Jan 2013 Link to this post

    Hello Andris,

    I have performed some test, based on the provided snippet of code, but I was unable to replicate the described issue. I tested with dummy data and here is a video demonstrating the behavior at my end. Could you also record a video, demonstrating the issue at yours? In addition, please specify the browser used and the version of our controls that you use?

    Kind regards,
    Nencho
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Andris
    Andris avatar
    6 posts
    Member since:
    Aug 2012

    Posted 30 Jan 2013 Link to this post

    Hello Nencho, 

    the screencast you provided was unavailable, could you link it again please?
  4. Nencho
    Admin
    Nencho avatar
    1872 posts

    Posted 04 Feb 2013 Link to this post

    Hello Andris,

    Please find the video, demonstrating the behavior at my end attached.

    Kind regards,
    Nencho
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top