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

"Loading" Text

1 Answer 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shahi
Top achievements
Rank 1
Shahi asked on 05 Jun 2013, 08:40 AM
Hi,

I am populating a radcombobox using the item requested server event. The data is fetched from the database instantly and its being populated. I want to display a "Loading" text explicitly and then only it should be populated.  Any possible method?

Thanks,
Shahi.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Jun 2013, 10:08 AM
Hi Shahi,

I guess you need to show the Loading text even if data is instantly fetched and populated from the database. You can try the following C# code in the beginning of the ItemRequested server side event.

C#:
protected void RadComboBox1_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
{
    System.Threading.Thread.Sleep(2000); //Loading text is shown for 2 seconds.
    //Your code
}

Thanks,
Princy.
Tags
ComboBox
Asked by
Shahi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or