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:import_methods [2010/02/07 09:46] tony |
wiki:import_methods [2012/04/02 07:14] tony |
||
---|---|---|---|
Line 18: | Line 18: | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").jqGridExport(options); | + | jQuery("#grid_id").jqGrid('jqGridExport', options); |
</code> | </code> | ||
Where | Where | ||
Line 36: | Line 36: | ||
<note>When we make the export we export only the grid configuration and the related events. We do not export the navigator. In order to do this you should manually construct the navigator in the jqGridImport using the importComplete event - see below</note> | <note>When we make the export we export only the grid configuration and the related events. We do not export the navigator. In order to do this you should manually construct the navigator in the jqGridImport using the importComplete event - see below</note> | ||
+ | |||
==== Importing ==== | ==== Importing ==== | ||
This method reads the grid configuration according to the rules in options and constructs the grid. When constructing the grid for first time it is possible to pass data to it again with the configuration. This is done with jqGirdImport | This method reads the grid configuration according to the rules in options and constructs the grid. When constructing the grid for first time it is possible to pass data to it again with the configuration. This is done with jqGirdImport | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").jqGridImport(options); | + | jQuery("#grid_id").jqGrid('jqGridImport', options); |
</code> | </code> | ||
Where | Where | ||
Line 51: | Line 52: | ||
|impurl|string|valid url to the configuration when xml or json. The data is obtained via ajax request| | | |impurl|string|valid url to the configuration when xml or json. The data is obtained via ajax request| | | ||
|mtype|string|Determines the type of request. Can be GET or POST|GET| | |mtype|string|Determines the type of request. Can be GET or POST|GET| | ||
- | |impData|array{}|additional data that can be passed to the url in pair name:value|empty array{}| | + | |impData|object|additional data that can be passed to the url in pair name:value|empty object {}| |
- | |xmlGrid|array{}|describes from where to read the xml configuration and from where the data if any. The option config describes the configuration tag. The option data describes the data tag|config : "roots>grid",\\ data: "roots>rows"| | + | |xmlGrid|object|describes from where to read the xml configuration and from where the data if any. The option config describes the configuration tag. The option data describes the data tag|config : "roots>grid",\\ data: "roots>rows"| |
- | |jsonGrid|array{}|describes from where to read the json configuration and from where the data if any. The option config describes the configuration tag. The option data describes the data tag| config : "grid",\\ data: "data"| | + | |jsonGrid|object|describes from where to read the json configuration and from where the data if any. The option config describes the configuration tag. The option data describes the data tag| config : "grid",\\ data: "data"| |
- | |ajaxOptions| Additional options which can be passed to the ajax request |empty object| | + | |ajaxOptions|object|Additional options which can be passed to the ajax request |empty object {}| |
==== Events ==== | ==== Events ==== |