当combobox选择了某一项之后,直接触发动作返回数据集
//选择专业刷新采购包列表.datagrid({ loadFilter: pagerFilter })
$('#ddlDiscipline').combobox({
onSelect: function (row) {
if (row != null) {
$.ajax({
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
url: "../../Controller/Interface/POtoPriceLib.ashx?Action=Refresh",
type: "get",
data: {
"DisciplineName": encodeURIComponent(row.专业名称),
"PurchaseNumber": encodeURIComponent($('#PurchaseNumber').textbox('getValue'))
},
dataType: "json",
success: function (data) {
$("#dg").datagrid("options").pageNumber = 1;
$("#dg").datagrid("loadData", data);
}
});
}
}
});