ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: entwine.llc.wi on September 21, 2018, 12:06:37 am

Title: Displaying the grid filter
Post by: entwine.llc.wi on September 21, 2018, 12:06:37 am
I was just wondering if there is a simple way to display the grid filter as it is being built?  I want to include a textbox that shows users how they are filtering the data as they move from column to column.
Title: Re: Displaying the grid filter
Post by: paramvir on September 21, 2018, 12:20:48 pm
you can use the filter event.

Code: [Select]
filter: function(evt, ui){
//debugger;
var data = ui.rules.map(function(rule){
return {
dataIndx: rule.dataIndx,
crules: rule.crules
}
})
$("#filter_log").val(JSON.stringify( data ));
},

Code: [Select]
  <textarea id='filter_log'></textarea>