开发者

what is the correct way to use flexigrid onError

I looked around and found that there is an onerror function for flexigrid but I can seem 开发者_Python百科to find how to use it andy have any idea how to use it so I don't have to mod the flexigrid.js


You can use it like this:

onError: function (data){ 
   for (var i in data){ 
      alert("Header: " + i +"\nMessage: " + data[i]); 
    } 
} 


all that needs to be done is for to define it in flexigrid options

$('#flex').fliexigrid({
  onError: function(data){
       // do stuff here
    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜