~~DISCUSSION~~
==== Conventions ====
An instance of jqGrid is a javascript object, with properties, events and methods. Properties may be strings, numbers, arrays, boolean values or even other objects.
Calling Convention:
Java Script code
jQuery("#grid_id").jqGrid(options);
HTML
....
...
...
Where:
* **grid_id** is the id of the
element defined separately in your html and used as the name of your grid.
* **options** is an array of settings in “name: value” pair format. Some of these settings are values, some are functions to be performed on their associated events. Some of these settings are optional while others are mandatory for jqGrid to work.
An example with xml data taken from the tutorial [[First Grid|My First Grid]]
Another example with json data:
On creation of a grid you normally will set all relevant options directly, but it is possible also, to modify them later on: see [[Options]]
Events raised by the grid, which offer opportunities to perform additional actions, are described in [[Events]].
The grid also offers several methods for getting or setting properties or data: see [[Methods]]
A key property of the grid is the column model (colModel) that defines the contents of the grid: [[colModel Options]]
Additional properties, events and methods of the basic grid, not described in this section, are used to create and manage the three special types of grids: [[jqgriddocs#basic_grid|multiselect grids]], [[jqgriddocs#subgrids|subGrids]] and [[jqgriddocs#tree_grid|treeGrids]]. Please refer to these topics for more details.