How to change Listerner's javascript function to Directmethod?

  1. #1

    How to change Listerner's javascript function to Directmethod?

    <ext:TextField ID="txtPrice" runat="server"  FieldLabel = "Cost" AnchorHorizontal="90%" MsgTarget="Side" ReadOnly="true" MaskRe="/[0-9\-\,\.]/" >
           <Listeners>
           <Change Handler="this.setValue(Ext.util.Format.number(newValue.replace(/[\$]/g, ''), '0,000.00'));" />
           </Listeners>
           </ext:TextField>
    Last edited by Daniil; Jan 24, 2012 at 5:31 PM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    Please see the example how to deal with DirectMethods.
    https://examples1.ext.net/#/Events/D...hods/Overview/

Similar Threads

  1. Replies: 5
    Last Post: Jul 15, 2019, 9:12 AM
  2. Replies: 7
    Last Post: Oct 21, 2014, 6:22 AM
  3. Replies: 6
    Last Post: Apr 02, 2012, 6:37 PM
  4. Replies: 0
    Last Post: Jan 11, 2012, 8:30 AM
  5. Calling JavaScript function
    By UserClarion in forum 1.x Help
    Replies: 2
    Last Post: Dec 30, 2011, 10:23 AM

Tags for this Thread

Posting Permissions