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:retrieving_data [2011/12/12 13:20]
wiki:retrieving_data [2012/01/30 16:22]
Line 1026: Line 1026:
 userData = {totalinvoice:​240.00,​ tax:40.00} userData = {totalinvoice:​240.00,​ tax:40.00}
 </​code>​ </​code>​
-The data can be accessed ​two ways.+The data can be accessed ​using a getGridParam methodTo do that we need to request this data: \\
-1Using a getGridParam ​method. To do that we need to request this data: \\+<code javascript>​jQuery("​grid_id"​).jqGrid('​getGridParam', '​userData'​)</​code>​ 
 +and using the old API (not preferr)
 <code javascript>​jQuery("​grid_id"​).getGridParam('​userData'​)</​code>​ <code javascript>​jQuery("​grid_id"​).getGridParam('​userData'​)</​code>​
-2. Using the user contributed ​ [[Post Data Module]] \\  
-<code javascript>​jQuery("​grid_id"​).getUserData()</​code>​ 
-to get the entry array or 
-<code javascript>​jQuery("​grid_id"​).getUserDataItem( key )</​code>​ 
-to get particular value with name = key 

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