Hi,
In our code , we first do the intialization of grid and in other mentod we load the source in grid by using adapter.
$(“#collectorGrid”).jqxGrid({
width : ‘100%’,
theme : theme,
pageable: true,
pagesize: 20,
pagesizeoptions: [ 20, 40, 60, 80, 100],
filterable: true,
showfilterrow: true,
columnsresize: true,
columnsreorder: false,
autoheight: true,
sortable: true,
altrows: true
});
$(“#collectorGrid”).jqxGrid({
source : collectorAdapter
});
while loading the source, we are getting following error after upgrading the JQWidgets from 3.7.1 to 3.8.2
Uncaught TypeError: Cannot read property ‘off’ of undefined
a.jqx.removeHandler @ jqxcore.js:7
a.jqx.(anonymous function).removeHandler @ jqxcore.js:7
a.extend._destroyedfilters @ jqxgrid.filter.js:7
One solution which i have got is – set the filterable false before loading the source and make the grid filterable with source loading.
$(“#collectorGrid”).jqxGrid({
filterable: false,
showfilterrow: false
});
$(“#collectorGrid”).jqxGrid({
source : collectorAdapter,
filterable: true,
showfilterrow: true,
});
Please help me to get rid of this error.