ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: sbryan on April 10, 2015, 09:33:52 pm

Title: Local header filtering with initial values
Post by: sbryan on April 10, 2015, 09:33:52 pm
I'm trying to use local header filtering on a date column using the between condition.

If I set value: and value2: in my filter they show up in the input fields but the grid isn't filtered until I change one.
Is there a way to make it filter on those values immediately when the grid is displayed?


 
Title: Re: Local header filtering with initial values
Post by: paramvir on April 13, 2015, 08:06:03 pm
You could call the filter method immediately upon grid creation ( in create event for local data / load event for remote data)

Code: [Select]
$grid.pqGrid( "filter", {
    oper: 'add',
    data: [{dataIndx: 'dataIndx of the column', value:'1st value', value2: '2nd value'}]
});

Please let me know if you need any further assistance.
Title: Re: Local header filtering with initial values
Post by: orlando_acevedo on July 20, 2017, 08:00:25 pm
Perfect. Thank you.