Hi
Trying to creatte button to clear filters with code:
{ type: 'button', label: 'Clear Filters', listeners: [
{
"click": function (evt, ui) {
var CM = $grid.pqGrid.getColModel();
for(var i=0, len = CM.length; i < len; i++){
var column = CM[i];
if(column.filter){
column.filter.value = null;
column.filter.cache = null;
}
}
$grid.pqGrid.refreshHeader();
$grid.pqGrid.filter({
oper: 'replace',
data: []
});
}
}
]
}
but get error: Uncaught TypeError: $grid.pqGrid.getColModel is not a function...