jqgrid掩码十进制数单元格 [英] jqgrid mask decimal number cells
问题描述
我在jgrid内有一个float类型的列,我想在用户进入单元格时屏蔽该列单元格.例如,掩码应为99999.99(当9 = 0到9之间的任何数字时).我要在该点的左边最多5位,在该点的右边最多2位-并且可以输入少于最大值的数字.
如何将该列屏蔽为十进制数字?
感谢提前.
类似
formatter: 'number', formatoptions: { decimalPlaces: 2 }
这来自 Wiki文档或已预定义的文档无效的话,您可以创建自定义格式化程序 >
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.
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
这篇关于jqgrid掩码十进制数单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!