Author Topic: Initial filter  (Read 1825 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Initial filter
« on: April 12, 2019, 06:31:50 pm »
Trying to set initial filter before ajax call is made...

Code: [Select]
load: function(){
$("grid").filter({
    oper: 'add',
    //mode: 'OR',
    rule: { dataIndx: 'col', condition: 'contain', value: '123' }
});
}

But it does not seem to work...

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Initial filter
« Reply #1 on: April 12, 2019, 06:56:10 pm »
This is not the right way to set initial filter.

Please check examples and set initial filter condition and value in the column definition.

https://paramquery.com/pro/demos/filter_initial
« Last Edit: April 12, 2019, 08:04:49 pm by paramquery »