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

Radcombox Ondemand loadind too slow

2 Answers 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
PPRINC
Top achievements
Rank 1
PPRINC asked on 14 Jul 2013, 04:20 PM

Hey you all,

I am in trouble with my radcombox controls.

I use to load my radcombobox on demand with the below script :

protected void rbox1_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
        {
                
                    DataTable datatable = new DataTable();
                    datatable = Load.Mydata();
                    foreach (DataRow datarow in datatable.Rows)
                    {
                        RadComboBoxItem item = new RadComboBoxItem();
                        string col1 = datarow["col1"].ToString();
                        string col2 = datarow["col2"].ToString();
                        item.Value = col2;
                        item.Text = col1;
                        item.Attributes.Add("MYColumn", col2);
                        rbox1.Items.Add(item);
                        item.DataBind();
                    }
                 
        }

Now I am using a masterpage in my webapplication. and since, the combobox failed to load several times before loading data in its list( I have to click several times before seeing my data in the dropdown list). 

Please help me to go through this blocking point.

Regards,

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jul 2013, 03:57 AM
Hi PPRINC,

I have tried your code and unfortunately I cannot replicate this issue at my end. As far as I know, this issue is not related to the load on demand feature since this is the best approach to optimize the performance speed of Telerik RadComboBox when using huge amount of items. Please have a look at this documentation on Optimizing the combobox speed. Another suggestion is when dealing with large amount of data, you can achieve the best performance with Web Service load on demand as shown in this demo. Web Service load on demand does not request the page and avoids the execution of the page life cycle. Less data is transferred between the client and the server.

Thanks,
Shinu.
0
PPRINC
Top achievements
Rank 1
answered on 30 Jul 2013, 04:06 PM
Thanks Shinu for your reply and sorry for the late.

I will take in account your suggestions and come back to you if possible.

Regards,

Tags
ComboBox
Asked by
PPRINC
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
PPRINC
Top achievements
Rank 1
Share this question
or