This is a migrated thread and some comments may be shown as answers.

LoadOnDemand not working for me (properly)

3 Answers 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andris
Top achievements
Rank 1
Andris asked on 27 Jan 2013, 01:24 AM
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>

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 30 Jan 2013, 03:46 PM
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.
0
Andris
Top achievements
Rank 1
answered on 30 Jan 2013, 09:51 PM
Hello Nencho, 

the screencast you provided was unavailable, could you link it again please?
0
Nencho
Telerik team
answered on 04 Feb 2013, 11:43 AM
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.
Tags
ComboBox
Asked by
Andris
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Andris
Top achievements
Rank 1
Share this question
or