Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:predefined_formatter [2011/07/08 13:03] nafeger fix grammar |
wiki:predefined_formatter [2013/05/13 15:50] admin |
||
---|---|---|---|
Line 41: | Line 41: | ||
srcformat: 'Y-m-d', | srcformat: 'Y-m-d', | ||
newformat: 'd/m/Y', | newformat: 'd/m/Y', | ||
+ | parseRe: /[Tt\\\/:_;.,\t\s-]/, | ||
masks : { | masks : { | ||
ISO8601Long:"Y-m-d H:i:s", | ISO8601Long:"Y-m-d H:i:s", | ||
Line 117: | Line 118: | ||
|checkbox|disabled|The default value for the disabled is true. This option determines if the checkbox can be changed. If set to false, the values in checkbox can be changed| | |checkbox|disabled|The default value for the disabled is true. This option determines if the checkbox can be changed. If set to false, the values in checkbox can be changed| | ||
|select|none|this is not a real select but a special case. See note below| | |select|none|this is not a real select but a special case. See note below| | ||
- | |actions|{ \\ keys: false,\\ editbutton : true, \\ delbutton : true, \\ editformbutton: false, \\ onEdit : null, \\ onSuccess: null, \\ afterSave:null, \\ onError: null, \\ afterRestore: null, \\ extraparam: {oper:'edit'}, \\ url: null, \\ delOptions: {}, \\ editOptions : {} \\ } \\ |This type of formatter is a easy way to add a buttons at certain column for inline editing. We add a two types of actions edit and delete. When the editformbutton parameter is set to true the form editing dialogue appear instead of in-line edit.| | + | |actions|{ \\ keys: false,\\ editbutton : true, \\ delbutton : true, \\ editformbutton: false, \\ onEdit : null, \\ onSuccess: null, \\ afterSave:null, \\ onError: null, \\ afterRestore: null, \\ extraparam: {oper:'edit'}, \\ url: null, \\ delOptions: {}, \\ editOptions : {} \\ } \\ |This type of formatter is a easy way to add a buttons at certain column for inline editing. We add a two types of actions edit and delete. When the editformbutton parameter is set to true the form editing dialogue appear instead of in-line edit. The option editOptions will be used only for the form editing.| |
==== Formatter type "Select" ==== | ==== Formatter type "Select" ==== | ||
Line 157: | Line 158: | ||
jQuery("#grid_id").jqGrid({ | jQuery("#grid_id").jqGrid({ | ||
... | ... | ||
- | colModel: [ {name:'myname', edittype:'select', formatter:'showlink', formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit'}, ...} | + | colModel: [ {name:'myname', formatter:'showlink', formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit'}, ...} |
... | ... | ||
] | ] | ||
Line 177: | Line 178: | ||
jQuery("#grid_id").jqGrid({ | jQuery("#grid_id").jqGrid({ | ||
... | ... | ||
- | colModel: [ {name:'myname', edittype:'select', formatter:'showlink', formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit', idName:'myid'}, ...} | + | colModel: [ {name:'myname', formatter:'showlink', formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit', idName:'myid'}, ...} |
... | ... | ||
] | ] | ||
Line 191: | Line 192: | ||
</code> | </code> | ||
+ | |||
+ | //But i don't know where from is value'123' ; |