My GenericPlugin don´t work with <ext:TextField

  1. #1

    My GenericPlugin don´t work with


    hi, sorry my question but it or is very hard or I'm a big monkey (it's more possible).

    I try make the generic plugin work with TextField for make a mask (I read in the topic) but don´t work nothing...

    I have two codes from InputTextMask
    this http://www.desenvolvedores.net/reina...utTextMask.rar
    and http://www.desenvolvedores.net/reina...herryonext.rar

    right!, this codes don´t have errors (I think, build all without errors)

    I try use it of 2 or 3 ways



    first
    <ext:ScriptContainer runat="server" /        >
    <script src="js/InputTextMask.js" type="text/javascript"></script>
    in the script I try with runat="server" too

    in page i put this code
    <ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
        <Plugins>
            <ux:InputTextMask Mask="9.999,99" />
        </Plugins>
    </ext:TextField>
    don´t work,

    i try this

    <ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
        <Plugins>
    
            <ext:GenericPlugin Path="~/js/InputTextMask.js" 
            InstanceOf="Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})" />
        </Plugins>
    </ext:TextField>
    and this

    <ext:TextField ID="m_maxima" runat="server" FieldLabel="Metragem Máxima" Width="250" >
        <Plugins>
            <ext:GenericPlugin Path="~/js/InputTextMask.js" InstanceOf="Ext.ux.InputTextMask">
                <CustomConfig>
                    <ext:ConfigItem Name="Mask" Value="9.999,99" />
                </CustomConfig>
            </ext:GenericPlugin>
        </Plugins>
    </ext:TextField>
    finaly I make this in the code behind
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim gPlug As GenericPlugin
            gPlug = New GenericPlugin
            With gPlug
                .InstanceOf = "Ext.ux.InputTextMask({mask:'999.999.999-99', clearInvalid:true})"
                .Path = "~/js/InputTextMask.js"
            End With
            Me.a_minima.Plugins.Add(gPlug)
        End Sub
    but nothing work every have one error: or espected {
    or function expected


    I need help with this... because i realy don´t know what is wrong in my code...

    :(

    thank´s to all...




  2. #2

    RE: My GenericPlugin don´t work with
    No reply???

  3. #3

    RE: My GenericPlugin don´t work with
    Hi reinaldo.designerdigital,

    We include the InputTextMask UX Plugin with our Coolite UX Toolkit. The following should be helpful, see*http://code.google.com/p/coolite-ux-.../InputTextMask


    Geoffrey McGill
    Founder
  4. #4

    RE: My GenericPlugin don´t work with
    Hi reinaldo.designerdigital,

    I just tested the following and it appears to work correctly, after including the Coolite.Ext.UX dll/Assembly into my web site project.

    Example

    <ext:TextField ID="TextField1" runat="server">
        <Plugins>
            <ux:InputTextMask runat="server" Mask="9.999,99" />
        </Plugins>
    </ext:TextField>
    Hope this helps.

    Geoffrey McGill
    Founder
  5. #5

    RE: My GenericPlugin don´t work with
    OUWWWWWWW THANKSSSSSS

    :D:D:D:D:D

    in the svn have error in code



    [Browsable(false)]


    public override void UpdateContent(string text)


    {


    //base.UpdateContent(text);


    }

    I remove it and build the .dll fine!

    work 100%, thank´s geoffrey.mcgill

    please mark solved

    :D

Similar Threads

  1. Replies: 10
    Last Post: Aug 27, 2012, 4:55 PM
  2. Replies: 2
    Last Post: May 16, 2012, 4:35 PM
  3. Replies: 1
    Last Post: Apr 20, 2012, 3:23 PM
  4. Using genericplugin
    By chrisuae in forum 1.x Help
    Replies: 4
    Last Post: Dec 28, 2011, 8:22 AM
  5. maxLength don´t work
    By reinaldo.designerdigital in forum 1.x Help
    Replies: 3
    Last Post: May 15, 2009, 12:33 PM

Posting Permissions