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 Both sides next revision
wiki:upgrade_from_3.6.4_to_3.6.5 [2010/05/20 13:14]
tony
wiki:upgrade_from_3.6.4_to_3.6.5 [2010/05/20 13:28]
tony
Line 41: Line 41:
 As can be seen every property should be quoted. \\ As can be seen every property should be quoted. \\
  
 +===== The "​d"​ Property =====
 +Switching from ajax complete to ajax success event causes to skip the jqGrid parse function, which detect automatically the so named "​d"​ property from the response (used in certain systems). \\ \\
 +
 +In order to solve the problem the jsonReader should be changed so that it can interpret this property correct. \\ 
 +If the default jsonReader is :
 +
 +<code javascript>​
 +jQuery("#​gridid"​).jqGrid({
 +...
 +   ​jsonReader : {
 +     root: "​rows",​
 +     page: "​page",​
 +     ​total:​ "​total",​
 +     ​records:​ "​records",​
 +     ​repeatitems:​ true,
 +     cell: "​cell",​
 +     id: "​id",​
 +     ​userdata:​ "​userdata",​
 +     ​subgrid:​ {root:"​rows", ​
 +        repeatitems:​ true, 
 +       ​cell:"​cell"​
 +     }
 +   },
 +...
 +});
 +</​code>​
 +\\ 
 +
 +It should be changed to
 +
 +<code javascript>​
 +jQuery("#​gridid"​).jqGrid({
 +...
 +   ​jsonReader : {
 +     root: "​d.rows",​
 +     page: "​d.page",​
 +     ​total:​ "​d.total",​
 +     ​records:​ "​d.records",​
 +     ​repeatitems:​ true,
 +     cell: "​cell",​
 +     id: "​id",​
 +     ​userdata:​ "​userdata",​
 +     ​subgrid:​ {root:"​d.rows", ​
 +        repeatitems:​ true, 
 +       ​cell:"​cell"​
 +     }
 +   },
 +...
 +});
 +</​code>​
 +
 +Note that the cell property should not be changed

QR Code
QR Code wiki:upgrade_from_3.6.4_to_3.6.5 (generated for current page)