Q22007 version performs better?

2 posts, 0 answers
  1. Travis
    Travis avatar
    226 posts
    Member since:
    Jan 2003

    Posted 28 Feb 2011 Link to this post

    I'm loading my combo box with around 4,000 items and am noticing a significant difference in performance between the old Q22007 version of the rad.combobox and the Q32010 ajax version.  Here's what my old Q22007 version looks like:

    <radcb:radcombobox id="EntityList2" 
                            runat="server"
                            Skin="WindowsXP"
                            MarkFirstMatch="true"  
                            AllowCustomText="true"
                            DataSourceid="MyDataSource"
                            DataTextField="MyTextField"
                            DataValueField="MyValueField"
                            Height="400px" Width="400px" 
                            AutoPostBack="True" EnableViewState="false"></radcb:radcombobox>

    Here's what I'm using for my new Q32010 combo box:

    <telerik:RadComboBox  id="EntityList" 
                            runat="server"
                            MarkFirstMatch="true"  
                            AllowCustomText="true"
                            DataTextField="MyTextField"
                            DataValueField="MyValueField"
                            DataSourceID="MyDataSource"
                            Height="400px" Width="400px" EnableVirtualScrolling="true"  
                            AutoPostBack="True" EnableViewState="false"  >
                            </telerik:RadComboBox >

    The old control loads the list almost instantly, but the new one takes 10 seconds!!!  How can acheive the lightening fast performance I enjoyed in the old control?  I don't want to have to use LoadOnDemand, unless it will display all items in the list.  If I can't, I'm just going to keep using the old one which is sad really. 

  2. Travis
    Travis avatar
    226 posts
    Member since:
    Jan 2003

    Posted 28 Feb 2011 Link to this post

    I think I just answered my own question.  This seems to work pretty good:

    <telerik:RadComboBox ID="EntityList" runat="server" Height="180px" Width="350px"
                                    DataSourceID="MyDataSource" 
                                    DataTextField="MyTextField" DataValueField="MyValueField"
                                    EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                    ItemsPerRequest="10" HighlightTemplatedItems="true" DropDownWidth="400px" MarkFirstMatch="true">
                                </telerik:RadComboBox>
Back to Top