Hi,
When I load a vlayout with simple form and listgrid into a tabbed pane, components are drown outside the pane. Is there a way to resolve this issue. My requirement is that entire content to be displayed with in the tabbed pane.
Here is the code
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
<SCRIPT>var isomorphicDir=“../isomorphic/”;</SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=../isomorphic/skins/SmartClient/load_skin.js></SCRIPT>
<title>Fx Rates and Trades Tabs</title>
</head>
<body>
<div id=“wholePage”>
</br>
<div id=“tabbedpain”>
<script>
isc.TabSet.create({
top:20, width:675, height:350,
tabs:[
{ title:“Tab1”,
pane:isc.ViewLoader.create({
autoDraw:false,
viewURL:“../js/LayoutTest.js”,
loadingMessage:“Loading Grid..”
})
}
]
});
</script>
</div>
</div>
</body>
</html>
LayoutTest.js
isc.VLayout.create({
members:[
isc.DynamicForm.create({
left:50,top:100,
autoDraw:false,
ID:"topForm",
items:[
{name:"field0"},
{name:"field1"}
]
}),
isc.ListGrid.create({
left:50,top:150,
autoDraw:false,
layoutAlign:"center",
ID:"valuesGrid",
height:100,
fields:[{name:"name"}],
data:[{name:"item1"}, {name:"item2"}, {name:"item3"}]
}),
isc.DynamicForm.create({
left:50,top:300,
autoDraw:false,
ID:"bottomForm",
items:[
{name:"field3"}
]
}),
]
})
// Values management:
isc.ValuesManager.create({
ID:“manager”,
members:[topForm, bottomForm],
// Method to integrate ListGrid values into the forms' values:
getAllValues : function () {
// valuesManager.getValues() will give us an object
// containing the values of the member forms.
var formValues = this.getValues();
// Set the 'field2' value to an array of the name
// properties of the selected records
var selection = valuesGrid.selection.getSelection(),
selectedNames = selection.getProperty("name");
formValues.field2 = selectedNames;
return formValues;
}
})
// testing values:
isc.IButton.create({
title:“values?”,
click:“isc.warn(isc.Log.echoAll(manager.getAllValues()))”,
left:50,top:350
})