どのようにajaxでjqgrid(jsonreader)パラメータを送信できますか?ajaxでjsonreaderパラメータを送信する
$.ajax({
url:'admin/report_table.php',
dataType: "json",
async: false,
success: function (data) {
if(!data) data=0;
// alert(data);
my_data = data;
}
});
jQuery("#report_data").jqGrid({
data: my_data,
datatype: 'local',
mtype: 'Get',
height: "auto",
width: 'auto',
rowNum: 20,
rownumbers: true,
rowList: [10,20,30],
colNames:['name','date'],
colModel :[
{name:'name', index:'name', width:100},
{name:'date', index:'date', width:150,align:"center"}],
pager: "#p_report_data",
viewrecords: true,
toolbar: [true, 'both'],
caption: "Report",
});
この回答には受け入れ可能とマークする –