View Full Version : TreeGrid and loadmask

31 Aug 2010, 12:21 AM
Hi, good!

I'm making a tree structure with treegrid and wanted to add the effect of loadmask but can not find where I can add.

Someone has managed to add this?

31 Aug 2010, 9:51 PM
I had made something along those lines:

var treeLoader = new Ext.tree.TreeLoader({
dataUrl : '/tree/index/',
preloadChildren : true,
clearOnLoad : false

var my_tree = new Ext.ux.tree.TreeGrid({
region : 'center',
margins : '0 0 0 0',
border : false,
useArrows : false,
animate : false,
enableDD : true,
lines : true,
defaultSortable : false,
enableSort : false,
containerScroll : true,
selModel : new Ext.tree.DefaultSelectionModel(),
loader: treeLoader

treeLoader.on('beforeload', function(){

treeLoader.on('load',function(tree, node){

1 Sep 2010, 6:15 AM
First of all thank you very much, I made a couple of adjustments, but finally worked.
More or less what I did.
What happens is that always wanted done, putting this code in the file "treegrid.js" but I did not succeed.

Is there any way to put it into the "treegrid.js?