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

RadAutoCompleteBox Loading/Spinning Image Not Showing

5 Answers 117 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
kp
Top achievements
Rank 1
kp asked on 25 Apr 2014, 08:17 PM
I've a RadAutoCompleteBox bound to a SQL data Source. When I type a text into the box, I want to have the loader/spinner show at the end as shown in this sample:

http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx

I've tried using the sample code which is extremely basic, but it still doesn't show the circular image at the end. Please help.

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
        <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" Width="250" DropDownHeight="150"
            DropDownWidth="250">
        </telerik:RadAutoCompleteBox>
    </telerik:RadAjaxPanel>
 
 
protected void Page_Load(object sender, EventArgs e)
        {
            RadAutoCompleteBox1.DataSource = new List<string>() { "Europe", "America", "Asia", "Africa", "Australia" };
        }

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Apr 2014, 09:25 AM
Hi Kp,

The loading image of RadAutoCompleteBox will show only if it take time to load the items. In your scenario there is not that much items so it will show the loading image for a very small period of time. Please add the following C# code and check it will show the loader image for sometimes. 

C#:
protected void Page_Load(object sender, EventArgs e)
{
    Thread.Sleep(1000);
    RadAutoCompleteBox1.DataSource = new List<string>() { "Europe", "America", "Asia", "Africa", "Australia" };
}

Thanks,
Princy.
0
kp
Top achievements
Rank 1
answered on 28 Apr 2014, 01:25 PM
Thanks for the reply Princy but my original connection to sql database takes some time so that's why the need for the image in the first place. I did try to add Thread.Sleep in the above example as suggested, but it still didn't work. I tried increasing the sleep time to 5 seconds but still no luck.
0
Princy
Top achievements
Rank 2
answered on 29 Apr 2014, 08:16 AM
Hi kp,

Unfortunately I couldn't replicate the issue at my end. 

Thanks,
Princy.
0
kp
Top achievements
Rank 1
answered on 29 Apr 2014, 02:21 PM
Hi Princy, can you please tell me which version of Telerik library you're using? I'm wondering if that's the issue. My version is 2013.3.114.40

Thanks,
KP
0
Princy
Top achievements
Rank 2
answered on 30 Apr 2014, 04:52 AM
Hi kp,

I am able to replicate the issue in telerik version Q3 2013, I tried with the latest version and it is working fine at my end. As a suggestion you can upgrate the telerik version to Q1 2014.

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