ParamQuery grid support forum
General Category => ParamQuery Pro Evaluation Support => Topic started by: gtwangi on December 17, 2018, 07:17:33 pm
-
I am using pqgrid v5.5 and chrome.
I expect that when filter option is selected, the listener function is called.
but 'change' listener is not firering.
what am I missing?
{
dataIndx: "TmpltNm",
title: "Template",
filter: {
crules:[{condition:'equal'}],
options : app.sheet.getFilterOptions("TMPLT_NM")
listener : {
change : function(ui, evt){
...
}
}
}
}
-
Yes listener is supposed to fire as per docs but it's not.
Anyway it's not required for remote filtering for > v5.2 as grid calls the filter method internally.
https://paramquery.com/pro/demos/filter_header ( listener not used anywhere )
-
I use both infinite scrolling and remote filter on the same page.
so I think that I need to clear grid data after filter is selected. otherwise unfiltered data remain in grid.
this works well on free version.(v2.4.1)
How could I use listener for remote filter as free version? or Is there alternative ways?
-
That's a good point but beforeFilter event takes care of resetting the data cache
beforeFilter: function(){
pqIS.init();
},
in this example of infinite scrolling: https://paramquery.com/pro/demos/infinite_scroll
So filter.listener is dispensable.
-
I resolved that. :)
thank you!!!