Hello!
Why after update row the scroll position has goes to default values i.e. top = 0 ;left = 0 ?
I working with angularJs
after
$scope.$on("dbChange" + Enum.DbChangingItem.Order.description, function(e, args) {
var changeType = getEnumByValue(Enum.DbChangeType, args.changeType);
var id = args.id;
updateGrid(id);
});
function updateGrid(id) {
var entities = deepIdSearch(id);
var ids = [];
for (var i = 0; i < entities.length; i++) {
ids.push(entities[i].TractorId);
}
if (ids.length > 0) {
dataService.disposition_getByIds(ids).then(function(response) {
for (var i = 0; i < response.length; i++) {
var d = $scope.settings.source._source.localdata;
var value = entities[i];
var index = d.indexOf(value);
var id = $scope.settings.jqxGrid('getrowid', index);
$scope.settings.jqxGrid('updaterow', id, createRow(response[i]));
});
}
}
Update method has been successed,but after $scope.$on will end
scroll position go to default value
What`s happenned?
i need ur help
thx