[CLOSED] TextField clearValue function broken

  1. #1

    [CLOSED] TextField clearValue function broken


    see attached function

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


    <%@ Language="C#"  %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" />
        <form runat="server" onsubmit="return false;">
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Neptune">
                    <DocumentReady Handler="alert('before');App.test.clearValue();alert('after');" />
            <ext:Viewport ID="ViewPortMain" runat="server" Layout="BorderLayout">
                    <ext:TextField ID="test" runat="server" Text="blah" />
    Last edited by fabricio.murta; Jan 08, 2019 at 3: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

Similar Threads

  1. Replies: 2
    Last Post: Feb 17, 2019, 6:18 PM
  2. [CLOSED] Autocomplete function is not working in textfield....
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 31
    Last Post: Nov 13, 2015, 10: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, 12:42 PM
  4. ComboBox clearValue bug
    By gercas in forum Bugs
    Replies: 0
    Last Post: Jun 30, 2009, 9:20 AM
  5. Replies: 4
    Last Post: Jul 05, 2008, 3:14 AM

Posting Permissions