开发者

jqgrid - format when editing row

开发者 https://www.devze.com 2023-01-28 17:34 出处:网络
I use client side library jqGrid. When I display column I use format optionsof column like this { name: \'Salary\', index: \'Salary\', width: 100, align: \'right\', sortable: false,

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

精彩评论

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