Image at the end of textbox while typing

2 posts, 0 answers
  1. kp
    kp avatar
    4 posts
    Member since:
    May 2013

    Posted 25 Apr 2014 Link to this post

    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>

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 30 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top