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
wiki:import_methods [2010/02/07 09:48]
tony
wiki:import_methods [2017/12/12 17:25] (current)
admin
Line 4: Line 4:
   - Grids constructed on the server can be reconstructed after sorting or paging, so a different configuration can be quickly used as required   - Grids constructed on the server can be reconstructed after sorting or paging, so a different configuration can be quickly used as required
   - Grids can be constructed visually on the server and then loaded from an xml string   - Grids can be constructed visually on the server and then loaded from an xml string
-  - Grid configuration can even be stored in the database as xml and then loaded as required+  - Grid configuration can even be stored in the database as xml and then loaded as required.
  
-It is important to note that jqGrid can load the configuration and data at once.+It is important to note that jqGrid can load the configuration and data at once. 
  
 ===== Installation ===== ===== Installation =====
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

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