Author Topic: Displaying the grid filter  (Read 1591 times)

entwine.llc.wi

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 14
  • Consultant
    • View Profile
Displaying the grid filter
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Displaying the grid filter
« Reply #1 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>