Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:custom_formatter [2011/09/17 13:49] artemeey |
wiki:custom_formatter [2011/09/17 13:51] artemeey |
||
---|---|---|---|
Line 48: | Line 48: | ||
The answer is: You can use your own custom unformatter function to do that. This function can be used in colModel | The answer is: You can use your own custom unformatter function to do that. This function can be used in colModel | ||
- | <code javascript> | + | Show image and edit image's path: |
- | <script> | + | |
- | jQuery("#grid_id").jqGrid({ | + | |
- | ... | + | |
- | colModel: [ | + | |
- | ... | + | |
- | {name:'price', index:'price', width:60, align:"center", editable: true, unformat:myunformatfunc}, | + | |
- | ... | + | |
- | ] | + | |
- | ... | + | |
- | }); | + | |
- | + | ||
- | + | ||
- | Image: | + | |
<code javascript> | <code javascript> |