Hi Team,
We have a jqxGrid to which we bind source dynamically.
We get the following error “jqxgrid.js:8 Uncaught TypeError: p.evaluate is not a function at b.jqx.dataview.refresh” on code ” $(‘jqxGrid’).jqxGrid(“source”, dataAdapter);”. However after the error the localdata is not binded to the grid and the loadelement always shows.
Attaching the code below:
$.ajax({
url: ‘/someurl’,
type: ‘GET’,
cache: false,
data: null,
beforeSend: function (xhr) {
$(“#jqxGrid”).jqxGrid(‘showloadelement’);
},
success: function (data) {
$(“#jqxGrid”).jqxGrid(‘hideloadelement’);
var sourceList = data;
var source = {
datatype: “json”,
datafields: [
{name: “id”, type: “number”},
{name: “name”, type: “string”},
{name: “text”, type: “string”},,
],
localdata: sourceList
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#jqxGrid”).jqxGrid(“source”, dataAdapter);
$(“#jqxGrid”).jqxGrid(‘selectrow’, -1);
}
},
error: function () {
$(“#jqxGrid”).jqxGrid(‘hideloadelement’);
},
complete: function (jqXHR, textStatus) {
}
});
Please help us with the error.
Thank you.