[CLOSED] Formatting Number Decimal & thousand seperator

Page 2 of 2 FirstFirst 12
  1. #11
    i tried setting it from Markup. It worked as you suggested. but when i try to set it from code behind it asks me for one dimensional array for CheckChangeEvents. how can i assign it from code behind...?
  2. #12
    Just set string array
    TextField1.CheckChangeEvents = new string[]{"blur"};
  3. #13
    Quote Originally Posted by Vladimir View Post
    Just set string array
    TextField1.CheckChangeEvents = new string[]{"blur"};
    i tried the same but it's doing nothing. no formatting no error. i forgot to tell you that i m using this textfield as editor for gridpanel column and i m populating the grid from code behind.

    the functionality i expect to have is when a user looses focus from any numeric column the value should be formatted and displayed as 0.00.
  4. #14
    Hi,

    If you use grid panel then you don't need format it for editor
    Just use NumberField instead TextField and use NumberColumn with appropriate Format property, like in the following sample
    https://examples2.ext.net/#/GridPane...mn_Variations/

    If you have still problems with grid and format for number column then please create new thread in 2.x Premium forum with a sample demonstrates the problem
  5. #15
    If anyone dealing with Too much recursion error, like me, try this:

    Handler="this.suspendEvent('change');this.setValue(myFormatFunction(newValue));this.resumeEvent('change');"
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] Thousand separator in number Field
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 28, 2010, 1:01 PM
  2. [CLOSED] How to avoid using Thousand Separator in Coolite Number Field
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 02, 2010, 8:29 AM
  3. How to format a number with 3 decimal
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Nov 24, 2010, 5:44 AM
  4. Replies: 0
    Last Post: Sep 04, 2009, 3:25 AM
  5. [CLOSED] How to format a decimal number...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 26, 2009, 3:48 AM

Posting Permissions