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
Last revision Both sides next revision
wiki:colmodel_options [2014/04/07 05:23]
tony
wiki:colmodel_options [2017/12/12 17:11]
admin
Line 4: Line 4:
  
 The colModel property defines the individual grid columns as an array of properties. This is the most important part of the jqGrid. The colModel property defines the individual grid columns as an array of properties. This is the most important part of the jqGrid.
-Syntax:+Syntax: ​
  
 <code javascript>​ <code javascript>​
Line 36: Line 36:
 |index|string|Set the index name when sorting. Passed as sidx parameter.|empty string| |index|string|Set the index name when sorting. Passed as sidx parameter.|empty string|
 |jsonmap|string|Defines the json mapping for the column in the incoming json string. See [[Retrieving Data]] |none| |jsonmap|string|Defines the json mapping for the column in the incoming json string. See [[Retrieving Data]] |none|
-|key|boolean|Overwrite the id (from readers) from server, this can be set as id for the unique row id. Only one column can have this property. This option have higher priority as those from then readers. If there are more than one key set the grid finds the first one and the second is ignored.|false|+|key|boolean|Overwrite the id (defined in readers) from server. Can be set as id for the unique row id. Only one column can have this property. This option have higher priority as those from the readers. If there are more than one key set the grid finds the first one and the second is ignored.|false|
 |label|string|When colNames array is empty, defines the heading for this column. If both the colNames array and this setting are empty, the heading for this column comes from the name property.|none| |label|string|When colNames array is empty, defines the heading for this column. If both the colNames array and this setting are empty, the heading for this column comes from the name property.|none|
 |name|string|Set the unique name in the grid for the column. This property is required. As well as other words used as property/​event names, the reserved words (which cannot be used for names) include subgrid, cb and rn.|Required | |name|string|Set the unique name in the grid for the column. This property is required. As well as other words used as property/​event names, the reserved words (which cannot be used for names) include subgrid, cb and rn.|Required |

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