I want the onselect event only do his job only on toolfilter not in advanced search.
Here is my grid:
$('#grid').jqGrid({
colNames: ['Title', 'date'],
colModel: [
{ name: 'Title', index: 'Title', searchoptions: { sopt: ['cn']} },
{ name: 'date', index: 'date', search: true, searchoptions: {
sopt: ['deq', 'dge', 'dlt'],
dataInit: function (el) {
$(el).datepicker({ onSelect: function (dateText, inst) { $("#grid")[0].triggerToolbar(); } });
}
}, width: 70
}
],
pager: jQuery('#pager'),
hidegrid: false,
sortname: "date",
sortorder: "desc",
rowNum: 20,
rowList: [10, 20, 50, 100],
autowidth: true,
width: "100%",
height: "100%",
datatype: 'json',
viewrecords: true,
mtype: 'POST',
url: '<url>'
})
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…