Mar 13, 2013, 12:33 PM
[CLOSED] TreeGrid scroll position after refresh
I have a treegrid that is filled every 5 seconds by this way:
Is there any way to maintain the scroll position or to force the scroll to go to the end / last row?
Ext.net.DirectMethods.RefreshLogTree({
eventMask: {
showMask: false
},
success: function (result) {
if (result != "") {
var nodes = Ext.util.JSON.decode(result);
tree.root.ui.remove();
tree.initChildren(nodes);
tree.root.render();
}
}
});
It works fine, nodes are loaded correctly. The problem is when there are lot of nodes and vertical scroll is enabled and you are inthe middle of the scroll next time the grid refreshes loose the scroll and it goes to the top of the grid.Is there any way to maintain the scroll position or to force the scroll to go to the end / last row?
Last edited by Daniil; Mar 19, 2013 at 4:23 AM.
Reason: Please use [CODE] tags, [CLOSED]