Hi,
I have function which loads the grid saved state from the grid form the server:
$scope.loadGrid = function(name) { console.log('Loading grid state: ' + name); // clear the filters $("#jqxgrid").jqxGrid('clearfilters'); // clear the groups var groups = $("#jqxgrid").jqxGrid('groups'); for ( var index = 0; index <= groups.length; index++) { var group = groups[index]; $('#jqxgrid').jqxGrid('removegroup', group); } console.log('Loading grid state: ' + name); $http({ method : 'GET', url : '/styleweb/simplex/gridstate/load/'+ $rootScope.userName +'/' + name }).success(function(data, status, headers, config) { $("#jqxgrid").jqxGrid('loadstate', data); }).error(function(data, status, headers, config) { console.log('Grid state not retrieved from server'); }); }
It seems to work fine when there are no grouping filters applied. But, sometimes when there is a grouping filter applied I get the following error:
TypeError: Cannot read property ‘visibleindex’ of undefined
Any idea what this could mean?
Cheers