Hi Guys,
I’m trying to filter and sort data.
Code already:
var grid = new dhx.Grid("grid", {
columns: [
{ id: "customer", header: [{ text: "Customer", css: "title_grey" }, { content: "selectFilter" }],
],
columnsAutoWidth: true,
footerRowHeight: 35,
headerRowHeight: 35,
selection:true,
});
grid.data.load("getFlexAssetsData.php");
Data loads fine and is filterable.
As soon as I add a sort or filter line, it fails to load.
Example line:
grid.data.filter({ by:"customer", match:"aa Example" });
I get the following error in console:
suite.js:6021 Uncaught TypeError: Cannot read property ‘map’ of undefined
at Object.toHtml (suite.js:6021)
at getCustomContentCell (suite.js:5820)
at suite.js:5855
at Array.map ()
at suite.js:5831
at Array.map ()
at getRows (suite.js:5831)
at Object.getFixedRows (suite.js:5899)
at Object.render (suite.js:20411)
at ViewModel.render (suite.js:19795)
I’ve also tried grid.data.load(“blah”).filter() but nothing works.