[CLOSED] TextField clearValue function broken

  1. #1

    [CLOSED] TextField clearValue function broken

    Support,

    see attached function

    link: https://docs.sencha.com/extjs/6.6.0/...hod-clearValue

    thanks,
    /Z.

    <%@ Language="C#"  %>
    
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Test</title>
    
    
    </head>
    
    
    <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" />
    
    
    <body>
        <form runat="server" onsubmit="return false;">
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Neptune">
                <Listeners>
                    <DocumentReady Handler="alert('before');App.test.clearValue();alert('after');" />
                </Listeners>
            </ext:ResourceManager>
    
    
            <ext:Viewport ID="ViewPortMain" runat="server" Layout="BorderLayout">
                <Items>
    
    
    
    
                    <ext:TextField ID="test" runat="server" Text="blah" />
    
    
                </Items>
            </ext:Viewport>
    
    
        </form>
    </body>
    </html>
    Last edited by fabricio.murta; Jan 08, 2019 at 2:11 PM.
  2. #2
    Hello @Z!

    Wrong documentation, the one you want for Ext.NET text fields is at https://docs.sencha.com/extjs/6.6.0/...ield.Text.html

    The one you pointed corresponds to Ext JS Modern toolkit, which is equivalent to Ext.NET Mobile.

    I confess I took a while also to figure out I was looking at the wrong documentation. I actually only found that out when I pulled the App.test.$className from developer tools in Chrome (client-side), clearValue() on docs claimed it was defined in Ext.field.Text whereas $className read Ext.form.field.Text. :)

    You'd probably be looking for App.test.clear() to do the same in Ext.NET ("classic toolkit" in Ext JS docs).

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    awesome!
    /Z

Similar Threads

  1. Replies: 2
    Last Post: Feb 17, 2019, 5:18 PM
  2. [CLOSED] Autocomplete function is not working in textfield....
    By speedstepmem2 in forum 1.x Premium Help
    Replies: 31
    Last Post: Nov 13, 2015, 9:39 AM
  3. [1.0] Set focus textfield clientside kind of broken
    By plykkegaard in forum 1.x Help
    Replies: 3
    Last Post: Feb 14, 2011, 11:42 AM
  4. ComboBox clearValue bug
    By gercas in forum Bugs
    Replies: 0
    Last Post: Jun 30, 2009, 8:20 AM
  5. Replies: 4
    Last Post: Jul 05, 2008, 2:14 AM

Posting Permissions