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.