[CLOSED] Remove InputMask dynamically on the client

  1. #1

    [CLOSED] Remove InputMask dynamically on the client

    Hi,

    I need to remove or disable the InputMask dynamically. I tried inputmask.disable() and inputmask.unmask(). But it was not working.

    Thanks in advance.
    Last edited by Daniil; Oct 25, 2013 at 3:10 PM. Reason: [CLOSED]
  2. #2
    Hi @MTSI,

    A disable call appears to be working for me.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
             <ext:TextField ID="TextField1" runat="server" Note="(999) 999-9999" FieldLabel="Phone">
                <Plugins>
                    <ext:InputMask runat="server" Mask="(999) 999-9999" />
                </Plugins>
            </ext:TextField>
    
            <ext:Button runat="server" Text="inputMask.disable()" Handler="App.TextField1.inputMask.disable();" />
        </form>
    </body>
    </html>
    Though you might need to call this after disabling an inputMask.
    App.TextField1.validate();

Similar Threads

  1. [CLOSED] Applying InputMask dynamically on the client
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 16, 2013, 4:51 AM
  2. Replies: 1
    Last Post: Oct 13, 2013, 8:52 AM
  3. [CLOSED] Applying InputMask dynamically on the client
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: May 17, 2013, 4:18 AM
  4. [CLOSED] How to add/remove items to a ComboBox on the client
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 24, 2013, 2:24 PM
  5. [CLOSED] How to remove GridPanel sorting on the client?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 13, 2012, 1:34 PM

Tags for this Thread

Posting Permissions