[CLOSED] Autocomplete function is not working in textfield....

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11
    Hello, any news about this topic?
    I tried on Chrome but couldn't get the autocomplete function work.
    Thanks in advance.
    M
  2. #12
    Well, the last news is this one:)

    Quote Originally Posted by Daniil View Post
    Could someone provide a raw HTML or/and ASP.NET example where IE auto-complete feature would work?

    We would do our best to investigate that sample and try to get it working in Ext.NET as well.
  3. #13
    Hi,
    we need this feature, too.

    You can find an example here:

    http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx

    Marco
  4. #14
    Thank you.

    I discovered that autocomplete is turned off by default in ExtJS.

    You can enable it this way.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:TextField runat="server">
                <Listeners>
                    <BeforeRender Handler="delete this.defaultAutoCreate.autocomplete;" />
                </Listeners>
            </ext:TextField>
        </form>
    </body>
    </html>
  5. #15
    I tried your code but nothing shows on the page?
    Did I forget anything? Shoud this code be used in combination with anything else?
    M
  6. #16
    No, nothing else.

    Is there any JavaScript error in the console?

    Are you using Ext.NET v1 or v2?
  7. #17
    Yes, i get the error: "Uncaught TypeError: Cannot convert null to object "

    the line is:
    Ext.net.ResourceMgr.init({"id":"ctl03","aspForm":"ctl01","theme":"gray"});Ext.onReady(function(){Ext.create("Ext.form.field.Text",{"id":"ctl04","renderTo":"App.ctl04_Container","listeners":{"beforerender":{"fn":function(item){delete this.defaultAutoCreate.autocomplete;}}}});});
    I'm using V2.

    Thanks in advance
    Marco
    Last edited by Daniil; Sep 18, 2013 at 2:59 PM. Reason: Please use [CODE] tags
  8. #18
    So, it was a solution for Ext.NET v1 since the current is in 1.x Premium Help.

    Please try this for Ext.NET v2.
    <ext:TextField runat="server">
        <Listeners>
            <Render Handler="this.inputEl.set({ autocomplete: 'on' });" />
        </Listeners>
    </ext:TextField>
  9. #19
    Still not working.
    I tried in Chrome and IE. No Scripting error detected.

    Here is my textbox.

    
                   <ext:TextField 
                        ID="txtUsername" 
                        runat="server"                     
                        FieldLabel="Username" 
                        AllowBlank="false"
                        BlankText="Your username is required."
                        Text=""
                        AutoFocus="true"
                         >
                        <Listeners>
                            <Render Handler="this.inputEl.set({ autocomplete: 'on' });" />
                        </Listeners>
                    </ext:TextField>
  10. #20
    It works for me. Please clarify what are your steps?
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. TextField MaxLength not working
    By xtremexploit in forum 2.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 11:28 PM
  2. [CLOSED] textfield red underline validation not working
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Feb 16, 2012, 1:42 PM
  3. [CLOSED] TextField Reset Text from ServerSide Not Working
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 11, 2010, 1:25 PM
  4. Replies: 6
    Last Post: Nov 16, 2009, 12:35 AM
  5. Textfield Keyup Listener Not Working
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Sep 25, 2009, 2:10 AM

Tags for this Thread

Posting Permissions