narentera / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

grid freeze on unexpected server answer #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In security reason I check page query for user permissions.
If user haven't rights, server answer contains some specific commands to page 
and no grid data.
But flexigrid wait grid structure long time.
I propose to use default structure in answer processing.

addData: function (data) { //parse data

/*!*/  data = $.extend({rows:[], page:0, total:0}, data);

Original issue reported on code.google.com by ymkin....@gmail.com on 7 Mar 2011 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by eric.caron on 22 Apr 2011 at 3:41