Add Properties

Hi ,
I am having 4 tabs and each tab is associated with 4 listgrid.
When page loads for I am creating only grids with unique ID and for Tab1 which is default selected tab I have data source connection but for other tabs I have created only listgrid with ID, I want to add properties like data source connection to the respective tabs listgrid when the other tabs are selected. Will be helpful if I can get working example.

Thanks
Kens

Hi Kens,

The best approach may be to delay creation of the components until the tab is selected. There is a tabSet.tabSelected() event on the TabSet that you can use for this purpose. Simple create the component as normal from inside tabSelected, then call TabSet.updateTab() passing the components as the “pane” argument.