jQuery UI Widgets Forums Grid Why grid removes the filters after updaterow?

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Stanislav 6 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Zabelsky
    Participant

    Hello,i have question.
    I`m used signalR for search changes from other page.

    function updateGrid(id) {
                var entities = deepIdSearch(id);
                var ids = [];
                for (var i = 0; i < entities.length; i++) {
                    ids.push(entities[i].Id);
                }
                if (ids.length > 0) {
                    dataService.tractors_getById(id).then(function (response) {
                            var d = $scope.settings.source;
                            var value = entities[0];
                            var index = d.indexOf(value);
                            var id = $scope.settings.jqxGrid('getrowid', index);
                            var row = createRow(response);
                            $scope.settings.jqxGrid('updaterow', id, row);
                    });
                }
            }
    
            $scope.$on("dbChange" + Enum.DbChangingItem.Tractor.description, function (e, args) {
                var id = args.id;
                updateGrid(id);
                break;
            });

    When a method works till the end,the table automatically cleans the filters
    Exactly the same way I used at other page,but there is working.
    What`s happenned?
    pls,help


    Stanislav
    Participant

    Hello AlexeyZabelsky,

    Your problem probably comes from the fact that you are updating the whole grid and not just the row.
    Maybe try with refresh or refreshdata?

    And what do u mean by for search changes from other page. What other page exactly?

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.