开发者

jqgrid - format when editing row

I use client side library jqGrid. When I display column I use format options of column like this

{ name: 'Salary', index: 'Salary', width: 100, align: 'right', sortable: false,
  editable: true,  formatter: 'number',
  formatoptions: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2} }

So, I format number to use “,” for decimal separator and “.” for thousands separator开发者_运维技巧. But when I edit row this column has numbers formatted like “.” for decimal separator and “,”for thousands separator. How can I correct this behavior? I would like to have same formats (as in my code) in display and edit mode. Thank you for any help!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜