Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqgrid mask decimal number cells

Tags:

jqgrid

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.

like image 880
user590586 Avatar asked Feb 21 '11 11:02

user590586


1 Answers

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

like image 76
Steve Avatar answered Oct 03 '22 23:10

Steve