ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: kjvjung on August 29, 2017, 05:01:42 am

Title: JavaScript for complex filter implementation (.. or .. or) AND (.. or .. or)
Post by: kjvjung on August 29, 2017, 05:01:42 am
Hello!

What do I need to fix to get the same results as attachments by editing the URL below?
What JavaScript should I fix?

https://paramquery.com/pro/demos/filter

Or open up examples of these complex filters.
Title: Re: JavaScript for complex filter implementation (.. or .. or) AND (.. or .. or)
Post by: paramvir on August 29, 2017, 03:38:19 pm
Mixing toolbar filtering and header filtering is not a good idea, it looks confusing.

As for the attachment, since there is no two way data binding, you have to update the filter textbox value in the toolbar manually.

Code: [Select]
//use filter event.
filter: function(){
var value = this.getColumn({dataIndx: 'contacttitle'}).filter.value,
$filterText = this.toolbar().find(".filterValue"),
oldVal = $filterText.val();
if(value != oldVal){
$filterText.val(value);
}
},