Hello,
I need to check if the Ignite Grid is already filtered. And if the Grid is already filtered, I need to get the params/values based on which the Grid is filtered?
Any ideas how do I achieve this?
Regards,
Arfan Baig
I am simply trying to HIDE FILTERING when initialized. Then the user can choose to SHOW if he wishes.
this will not hide the filtering upon init:
$("#pfgrid").igGridFiltering("allowFiltering", false);
I've been researching this, but can't figure out how to hide filtering when igGrid is first displayed.
thanks.
Bob
Hello Arfan,
You can get the current filter from the igDataSource.
Try with the following code:
$("#grid1").data("igGrid").dataSource.settings.filtering.expressions;
This code will return an array of objects with the following structure:
{ fieldName: "<ColumnKey>", cond: "<Condition>", expr: "<FilterValue>"}
For more information see the $.ig.DataSource API Documentation.
Hope this helps,Martin PavlovInfragistics, Inc.