Hello,
i am using the treegrid component.
I am performing lazy loading of the node children as described on the documentation.
In order to make the grid fit better with the data I load I want to use the autoSizeColumn like this:
if(this.firstLoad)
{
var fields = this.$treegrid.treegrid('getColumnFields');
for(var i=0; i<fields.length; i++){
var field = fields[i];
this.$treegrid.treegrid('autoSizeColumn', field);
}
}
I need to use the autoSizeColumn just once after laoding the tree root. (I am sure all the other data will fit the column width of the tree root)
Unfortunately I see that the library, after calling this.$treegrid.treegrid('autoSizeColumn', field), starts recalculating the columns width every time I expand a tree node.
I can say this because I see the method onResizeColumn: function(field, width) called every time I expand the node.
Is there a way for make the library to stop the auto column resize?
Thanks a lot.