I am using filter using Javascript and getting following error:
Error: "cannot call methods on igGridFiltering prior to initialization; attempted to call method 'filter'"
1) grid already refreshed with data (loaded)
2) applying the filter programmatically
function applyFilter() {
var component = $("#Component").val();
var attKey = $("#AttributeKey").val();
var attValue = $("#AttributeValue").val();
debugger;
$("#grid").igGridFiltering('filter', ([
{fieldName: "ComponentDesc", expr: component, cond: "contains"},
{fieldName: "AttributeDesc", expr: attKey, cond: "contains"},
{fieldName: "CategoryDesc", expr: attValue, cond: "contains"}
]));
}
help is much appreciated.