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

Image at the end of textbox while typing

1 Answer 89 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, 07:50 PM
I'm using a SQL DataSource to bind to RadAutoCompleteBox in the Page Load. The RadAutoCompleteBox  is inside a RadAjaxPanel. However, when I type anything into the box, I do not see the loading/spinning image at the end of the text box as shown in the sample here:

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


Here's my code:

<telerik:RadAjaxPanel runat="server" ID="Panel1">
                           <telerik:RadAutoCompleteBox runat="server" ID="MailTo" Filter="StartsWith" DropDownHeight="400"
                               DropDownWidth="250" AllowCustomEntry="true" DataTextField="Text" DataValueField="Value">
                               <DropDownItemTemplate>
                                   <table cellpadding="0" cellspacing="0">
                                       <tr>
                                           <td align="left" style="width: 50%; padding-left: 10px;">
                                               <%# DataBinder.Eval(Container.DataItem, "Text")%>
                                           </td>
                                       </tr>
protected void Page_Load(object sender, EventArgs e)
       {        
 
           MailTo.DataSource = GetUsers();       
           MailTo.DataBind();
           
       }
                                   </table>
                               </DropDownItemTemplate>
                           </telerik:RadAutoCompleteBox>
                       </telerik:RadAjaxPanel>

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Apr 2014, 06:23 AM
Hello Kanishka,

I have tested your RadAutoCompleteBox settings, but everything seems to work correctly with the spinning image. However, if you test this locally, it is possible that there is no time for the spinning image to be displayed (due to fast response time).

For testing purposes only I could suggest that you force the response to be delayed with the following and see if the spinning image will be displayed:
protected void Page_Load(object sender, EventArgs e)
{
    System.Threading.Thread.Sleep(5000);
    MailTo.DataSource = GetUsers(); 
    MailTo.DataBind();
}

Hope that helps.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AutoCompleteBox
Asked by
kp
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or