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

Q22007 version performs better?

1 Answer 65 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 01 Mar 2011, 01:45 AM
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. 

1 Answer, 1 is accepted

Sort by
0
Travis
Top achievements
Rank 1
answered on 01 Mar 2011, 02:15 AM
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>
Tags
ComboBox
Asked by
Travis
Top achievements
Rank 1
Answers by
Travis
Top achievements
Rank 1
Share this question
or