开发者

change cells text in a jqGrid

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜