Sometime table going to blank when I'm writing the text for searchbox very fast,
i have used below code for search functionality,
====================================
toolbar: {
cls: "pq-toolbar-schedule",
items: [
{
type: 'textbox',
//label: 'Filter: ',
attr: 'placeholder="Type here your search keyword..."',
cls: "filterValue searchBox scheduleSearchField",
listener: { timeout: filterhandler }
}
]
}
================================
function filterhandler() {
var $toolbar = this.toolbar(),
$value = $toolbar.find(".filterValue"),
value = $value.val(),
//condition = $toolbar.find(".filterCondition").val(),
//dataIndx = $toolbar.find(".filterColumn").val(),
filterRules;
filterRules = this.getColModel().map(function (column) {
return { dataIndx: column.dataIndx, condition: "contain", value: value };
})
//call to grid filter method.
this.filter({
oper: 'replace',
rules: filterRules
});
}