Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:custom_formatter [2011/09/17 13:49]
artemeey
wiki:custom_formatter [2011/09/17 13:51]
artemeey
Line 47: Line 47:
  
 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
 +
 +Show image and edit image'​s path:
  
 <code javascript>​ <code javascript>​
 <​script>​ <​script>​
-jQuery("#​grid_id"​).jqGrid({ 
-... 
-   ​colModel:​ [  
-      ...  
-      {name:'​price',​ index:'​price',​ width:60, align:"​center",​ editable: true, unformat:​myunformatfunc},​ 
-      ... 
-   ] 
-... 
-}); 
  
  
-Image: 
- 
-<code javascript>​ 
-<​script>​ 
 jQuery("#​grid_id"​).jqGrid({ jQuery("#​grid_id"​).jqGrid({
 ... ...

QR Code
QR Code wiki:custom_formatter (generated for current page)