Hi, I've got one problem - after update data in TreeGrid the grid is auto collapsed.
I need only update data and keep opened nodes open and closed nodes close.
I'm attaching a sample.
Way to repoduce:
1. Tap "Expand" or open some nodes.
2. Tap Update
The thee will close all nodes automatically.
Please help to solve it.
Version 1.50.0.1480 Complete
Can you try this approach ?!
UniDBTreeGrid -> ClientEvents ->
1. UniEvents -> function beforeInit:
function beforeInit(sender, config)
{
sender.expandedNodes=[];
}
2. ExtEvents -> function store.beforeload
function store.beforeload(store, operation, eOpts)
{
var me=this.grid;
me.expandedNodes=[];
me.getRootNode().cascadeBy(function(node) {
if (node.data.expanded) {
me.expandedNodes.push(node.data.id)
}
});
}