Forum
23:00
11/04/2011
Hi everyone,
I just switched from jQGrid v3.8.2 to v4.0 and had to see that the option "reloadAfterSubmit" seems to stopped working.
I didn't modify my source code at all during the upgrade.
I also set the option to true, even though it should default to true.
Here's my code:
var categoryTable = $('#categoryTable');
categoryTable.jqGrid({
colNames : ['ID', 'Name'],
colModel : [
{name:'ID', index:'ID', hidden:true},
{name:'Name', index:'Name', sortable:false, editable:true, editoptions:{size:30, maxlength:50}}
],
datatype : 'json',
editurl : baseUrl + 'admin/category/grid',
emptyrecords: true,
loadComplete : function(response) {
if (true === handleJsonResponse(response)) { //own function to parse JSON response
categoryTable.clearGridData();
$.each(response.content, function(index, responseElement) {
categoryTable.addRowData(index, responseElement);
});
}
},
mtype : 'POST',
pager : 'categoryPager',
pgbuttons : false,
pginput : false,
resize : false,
url : baseUrl + 'admin/category/load',
viewrecords: true,
width : 700
}).navGrid('#categoryPager',
{refresh: false, search: false},
{afterSubmit: handleXhrResponse}, //own function, just ignore this one
{afterSubmit: handleXhrResponse}, //own function, just ignore this one
{afterSubmit: handleXhrResponse}, //own function, just ignore this one
{}
);
May you take a look at this?
Thanks in advance!
Greeting,
Rene
Most Users Ever Online: 715
Currently Online:
40 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66