Radcombox Ondemand loadind too slow

3 posts, 0 answers
  1. PPRINC
    PPRINC avatar
    9 posts
    Member since:
    Jun 2013

    Posted 14 Jul 2013 Link to this post


    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Jul 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. PPRINC
    PPRINC avatar
    9 posts
    Member since:
    Jun 2013

    Posted 30 Jul 2013 Link to this post

    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,

Back to Top