jqgrid mask decimal number cells

12,119

something like

formatter: 'number', formatoptions: { decimalPlaces: 2 }

this is from the wiki docs or if those predefined ones don't work you can create a custom formatter

Share:
12,119
user590586
Author by

user590586

Updated on June 24, 2022

Comments

  • user590586
    user590586 almost 2 years

    I have inside my jgrid a column which is of type float , I want to mask the column cells when ever the user enters the cell. for exmple , the mask should be 99999.99 (when 9 = any number between 0-9). i want max 5 digits to the left of the point and max of 2 digits to the right of the point - and that it will be posible to enter less then the max.

    How can I mask this column to be a decimal number?

    Thank's In Advance.