JqGrid "reloadGrid" using Local Data (JSON Object) andrey четверг, 20 марта 2014 г. No Comment

In jqGrid they are using .trigger('reloadGrid'); to reload the grid like below,

$('#gridID').trigger('reloadGrid');

If you are using Local data, you should mention your Local Json Data in jqGrid's
setGridParam property and you can use jqGrid's loadComplete event handler to do this like below,

loadComplete: function () {
jQuery("#grid1")
.jqGrid('setGridParam', {
datatype: 'local',
data: dynaData2 //json object
})
.trigger("reloadGrid");
}

See this Stackoverflow answer post.

And also read this jqGrid Documentation
In jqGrid they are using .trigger('reloadGrid'); to reload the grid like below,

$('#gridID').trigger('reloadGrid');

If you are using Local data, you should mention your Local Json Data in jqGrid's
setGridParam property and you can use jqGrid's loadComplete event handler to do this like below,

loadComplete: function () {
jQuery("#grid1")
.jqGrid('setGridParam', {
datatype: 'local',
data: dynaData2 //json object
})
.trigger("reloadGrid");
}

See this Stackoverflow answer post.

And also read this jqGrid Documentation
by Jillur Rahman

Jillur Rahman is a Web designers. He enjoys to make blogger templates. He always try to make modern and 3D looking Templates. You can by his templates from Themeforest.

Follow him @ Twitter | Facebook | Google Plus

No Comment