datagrid,treegrid携带参数刷新示例
datagrid携带参数刷新:
var queryParams = $("#datagridId").datagrid("options").queryParams; $("#datagridId").datagrid("options").queryParams=queryParams; $("#datagridId").datagrid("reload");
treegrid携带参数刷新:
$('#xhjReportMonthJobList').treegrid({ queryParams: { fromday: begin, today: end } }); var params = $("#xhjReportMonthJobList").treegrid("options").queryParams; $("#xhjReportMonthJobList").treegrid("options").queryParams=params; $("#xhjReportMonthJobList").treegrid("reload");