CoffeeCode
CoffeeCode

Reputation: 4314

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: false, jsonmap: 'InspectionTypeId' },

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

Upvotes: 2

Views: 1668

Answers (1)

queen3
queen3

Reputation: 15521

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.

Upvotes: 4

Related Questions