jQWidgets Forums

jQuery UI Widgets Forums Grid Grid saved state loading issue

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid saved state loading issue #22622

    davijeb
    Blocked

    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

    Grid saved state loading issue #22623

    davijeb
    Blocked

    Also, get this error as well:

    TypeError: Cannot read property ‘text’ of undefined

    Once this error is thrown I’m then unable to load the grid state as this error is continually thrown.

    Grid saved state loading issue #22627

    Peter Stoev
    Keymaster

    Hi,

    1. We will investigate the reported behavior and if we reproduce it, we will add a work item about it.
    2. From your posts and errors in the links that I removed, it seems that you have unminified our code which is in violation with our EULA.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.