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.
精彩评论