Problem with TreeGrid AutoFetch

I have a tree grid and other UI comonents(like forms,Tabsets,Buttons etc). If I set autoFetchData: true in my tree grid, My Tabsets and Other UI components are working but If I set autoFetchData: false then Some UI componets are overlapping with Header.
I am required to do autoFetchData: false…

Any suggestions please.

That doesn’t make much sense, fetching data is totally unrelated to Layout.

Are you seeing a JS error?

Can you show the relevant code?

My Tree Grid Defenition is

isc.TabSet.create({
    destroyPanes:"false",
tabs:[
          {
         title:"Test1 View",
            pane: isc.TreeGrid.create({
                    ID: "Test1ViewTree",
                    dataSource:Test1ResultDS,
                    loadDataOnDemand:false, 
                    alternateRecordStyles:true,
                    showConnectors: true,
                    closedIconSuffix:"",
                   autoFetchData: false,
                   autoFit:true,
                   dataPageSize: 20,
                   drawAheadRacio: 4,
                  fields: [
	             {name: "productName"},
     	             {name:"productId", title:"product Id"}]
           }),
           loadingMessage:"Loading Grid..",		 
            ID:"Test1Tab"
        },	
        {
            title:"Test2 View",
             pane:
	    isc.TreeGrid.create({
                 ID: "Test2ViewTree",
	    dataSource:Test2ResultDS,
                 dataPageSize: 20,
                 drawAheadRacio: 4,
	    showConnectors: true,
	    loadDataOnDemand:false, 
	    alternateRecordStyles:true,
	    closedIconSuffix:"",
                 autoFetchData: false,
	    autoFit:true,
                 fields: [
		{name: "productName"},
     		{name:"productId", title:"Product Id"}]	 ,loadingMessage:"Loading Data.."
             }) ,
            ID:"Test2Tab"
        }
    ],
    autoDraw:false,
    ID:"ViewTabSet"
});

My Data Source Definition

isc.DataSource.create({
	ID:"Test1ResultDS",
	serviceNamespace :"http://service.products.test.com/",		
	wsOperation : "treeViewSearch",       
	recordXPath:"//treeViewProduct",
	fields: [		   		 	
	   {childrenProperty:true, name:"Test1View"},
	   { name:"producttype",title:"producttype",visibility: "hidden"},
	   {name: "productName" , title:"Product Name"},
               {name:"productId", title:"ProductId"}		   		 
	]

});
isc.DataSource.create({
	ID:"Test2ResultDS",
	serviceNamespace :"http://service.products.test.com/",		
	wsOperation : "treeViewSearch",	
	recordXPath:"//treeViewProduct",
	fields: [		   		 	
	   {childrenProperty:true, name:"Test2View"},
	   { name:"producttype",title:"producttype",visibility: "hidden"},
	   {name: "productName" , title:"Product Name"},
                {name:"productId", title:"ProductId"}	
	]

});

If I keep autofetchdata=true then my layout is not changing, if i keep false then my layout is going up(overlapping with header) after loading.

I don’t think you mean autoFetchData.. you have incorrect autoDraw settings (both TreeGrids should be autoDraw:false) and this could cause those TreeGrids to appear at 0,0 (top left of screen) if the TabSet were not drawn yet.

with autoDraw:false also it is showing same behaviuor. I am trying to stop autoFetch. I have conditions to check before fetch the data. Is it possible break the fetching data?

With autoFetchData:false and no calls to fetchData(), no fetching is going to happen.