开发者

change cells text in a jqGrid

开发者 https://www.devze.com 2022-12-16 21:46 出处:网络
i have a colModel looks like this: { name: \'TypeId\', index: \'TypeId\', align: \'left\', width: 50, editable: true, edittype: \"select\", sortable: false,

i have a colModel looks like this:

    { name: 'TypeId', index: 'TypeId', align: 'left',
 width: 50, editable: true, edittype: "select", sortable: false,
 hidden开发者_Python百科: false, jsonmap: 'InspectionTypeId' },

how can i change the cells text not changing the value?


One way, you can define a custom formatter (and unformatter) such that they will return the value that you need. Formatter will change the displayed text, and unformatter will convert this text back to the real value.

0

精彩评论

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

关注公众号