Using the example from the Grid - Getting Started page (http://docs.syncfusion.com/js/grid/getting-started), if I start out with an empty grid and then refresh the data
the excel and menu filtertypes do not work. After I assign a datasource (from another function that I call), I get the following error message:
'Uncaught TypeError: n.render[((this.id + this._$colType) + "_listBox_Template")] is not a function'
Is there a work around for this behavior?
Code
window.gridData = [
{ firstName: "John", lastName: "Beckett", email: "john@syncfusion.com" },
{ firstName: "Ben", lastName: "Beckett", email: "ben@syncfusion.com" },
{ firstName: "Andrew", lastName: "Beckett", email: "andrew@syncfusion.com" }
];
$("#Grid").ejGrid({
//dataSource: window.gridData,
allowFiltering: true,
filterSettings: { filterType: "excel" },
allowPaging: true,
allowSorting: true,
pageSettings: { pageSize: 5 },
columns: [
{ field: "firstName",headerText:"First Name" },
{ field: "lastName", headerText: "Last Name" },
{ field: "email", headerText: "Email" }
]
});
$("#Grid").ejGrid("dataSource", window.gridData);