从网上查了一些datagrid重新加载传参的问题,我的已经实现了,希望对大家有帮助哈
function stat_getDataContrast() {
var year = $('#cbYearContrast').combobox('getValue');
var year1 = $('#cbYearContrast1').combobox('getValue');
var month1 = $('#cMonthContrast1').combobox('getValue');
var startTime = $('#dtbStartTimeContrast').datetimebox('getValue');
var endTime = $('#dtbEndTimeContrast').datetimebox('getValue');
var year2 = $('#cbYearContrast2').combobox('getValue');
var month2 = $('#cMonthContrast2').combobox('getValue');
$('#FieldSupervisionDataStatistics_Grid').datagrid('load', { Year: year,StartTime: startTime,EndTime: endTime, Year1: year1,Month1: month1,Year2: year2,Month2: month2 });
$('#FieldSupervisionDataStatistics_Window').window('close');
}
$('#FieldSupervisionDataStatistics_Grid').datagrid('load',
{ Year: year,StartTime: startTime,EndTime: endTime, Year1: year1,Month1: month1,Year2: year2,Month2: month2 });
这个例子共传了7个参数{ Year: year,StartTime: startTime,EndTime: endTime, Year1: year1,Month1: month1,Year2: year2,Month2: month2 });