jqgrid - Code wrong in version 4.5.0 -


i have following code in 4.4.5

    parametrii={addparams: {     rowid: 'new_row',     usedefvalues: true,     addrowparams: {         keys: true,         oneditfunc: function (rowid) {             editingrowid = rowid;         },         afterrestorefunc: function (id) {            editingrowid = undefined;         },         aftersavefunc : function(rowid,response) {            var json = $.parsejson(response.responsetext);             return [true, eval(json.mesaj),$gridintretinuti.trigger("reloadgrid")];         }     } }     

and in 4.5.0 not work.
not know why, can me ?

this error: typeerror: can't convert undefined object

aftersavefunc don't need return anything. calling of $gridintretinuti.trigger("reloadgrid") inside of aftersavefunc seems me strange. if want reload grid inside of aftersavefunc it's better call reloadgrid inside of settimeout. example

aftersavefunc: function () {     var $self = $(this);     settimeout(function () {         $self.trigger("reloadgrid", [{current: true}]);     }, 50); } 

the changes of code have sense independent version of jqgrid use.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -