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

Rad combo multiple column deadly slow

3 Answers 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
kollam2003
Top achievements
Rank 1
kollam2003 asked on 27 Jan 2010, 09:19 AM
I have a combo box.
Almost 500 rows is bind to the combo at run time.
<telerik:RadComboBox ID="RadComboBox_SchoolName_Search" runat="server" Skin="Default" 
                        Width="575px" Font-Names="Arial" HighlightTemplatedItems="true" MarkFirstMatch="true" 
                        AutoPostBack="true" EnableTextSelection="true" EnableItemCaching="true"
                        <HeaderTemplate> 
                            <table style="text-align: left; width: 575px"
                                <tr> 
                                    <td style="width: 400px; font-weight: bold;"
                                        School Name 
                                    </td> 
                                    <td style="width: 175px; font-weight: bold;"
                                        State 
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table style="width: 630px; text-align: left"
                                <tr> 
                                    <td style="width: 430px;"
                                        <%# DataBinder.Eval(Container.DataItem, "SchoolName")%> 
                                    </td> 
                                    <td style="width: 200px;"
                                        <%# DataBinder.Eval(Container.DataItem, "State")%> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
  <CollapseAnimation Duration="200" Type="None" /> 
                    </telerik:RadComboBox> 
and bind using
 private void Populate_RadComboBox_SchoolName_Search() 
    { 
        DataTable _SchoolwithState = new DataTable(); 
        _SchoolwithState.Clear(); 
        RadComboBox_SchoolName_Search.Items.Clear(); 
        _SchoolwithState = objLookup.Populate_SchoolwithStatename(); 
        if (_SchoolwithState.Rows.Count > 0) 
        { 
            if (_SchoolwithState.Rows.Count > 15) 
            { 
                RadComboBox_SchoolName_Search.Height = 410
            } 
 
            RadComboBox_SchoolName_Search.DataSource = _SchoolwithState
            RadComboBox_SchoolName_Search.DataTextField = "SchoolName"
            RadComboBox_SchoolName_Search.DataValueField = "SchoolID"
            RadComboBox_SchoolName_Search.DataBind(); 
        } 
        RadComboBox_SchoolName_Search.Items.Insert(0, new RadComboBoxItem("---Search Students by School Name---")); 
    } 
At run time, I have to wait for a long time to load the drop down after clicking the arrow.
Is there any other methods to make it fast.
Please help.








3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jan 2010, 11:07 AM
Hello,

Here are some suggestions on how to improve the performance of RadControls.

Load On Demand
Optimizing output, page load time and the overall performance of RadControls for ASP.NET AJAX

I hope you will find these as useful,
Shinu.





0
kollam2003
Top achievements
Rank 1
answered on 08 Mar 2010, 02:57 PM
hi Shinu,
Its slow when i'm adding

<ItemTemplate> 
                            <table style="width: 630px; text-align: left"
                                <tr> 
                                    <td style="width: 430px;"
                                        <%# DataBinder.Eval(Container.DataItem, "SchoolName")%> 
                                    </td> 
                                    <td style="width: 200px;"
                                        <%# DataBinder.Eval(Container.DataItem, "State")%> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
is dere any other way to implement this?
0
Accepted
Kamen Bundev
Telerik team
answered on 09 Mar 2010, 04:35 PM
Hello,

Check this example, the grid-like multi-column RadComboBox is not done with tables but instead with an unordered list:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

Sincerely yours,
Kamen Bundev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
kollam2003
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
kollam2003
Top achievements
Rank 1
Kamen Bundev
Telerik team
Share this question
or