Hi Isomorphic,
using v12.1p_2022-08-10 (and also older 12.0p) it seems that TabSet in SmartGWT generates a default Tab with ID isc_x (x is a number).
I'm creating Tabs from a DataSource call. The tabSelected handler then lazily builds the pane from the tab ID.
The tabSelected handler also fires for this default tab, which is not wanted. Strangely enough, this default tab is not visible in my application, but the handler fires nevertheless.
SmartClient TabSet does not generate this Tab and can draw without any Tab. Here (v12.1p_2023-03-07) the good behavior from SmartClient:
Does this already help you to narrow down the problem in SmartGWT?
Thank you & Best regards
Blama
using v12.1p_2022-08-10 (and also older 12.0p) it seems that TabSet in SmartGWT generates a default Tab with ID isc_x (x is a number).
I'm creating Tabs from a DataSource call. The tabSelected handler then lazily builds the pane from the tab ID.
The tabSelected handler also fires for this default tab, which is not wanted. Strangely enough, this default tab is not visible in my application, but the handler fires nevertheless.
SmartClient TabSet does not generate this Tab and can draw without any Tab. Here (v12.1p_2023-03-07) the good behavior from SmartClient:
Code:
isc.TabSet.create({ ID: "tabSet", width: "100%", height: "100%", tabSelected: function(tabNum, tabPane, ID, tab, name) { isc.logWarn("Name: " + name + ", ID: " + ID + ", Title: " + tab.title); } }); isc.IButton.create({ ID: "myButton", title: "Load Tabs", click: "this.loadTabs()", loadTabs: function() { countryDS.fetchData({ fieldName: "countryName", operator: "lessThan", value: "I" }, function(dsResponse, data) { for (let i = 0; i < data.length; i++) { tabSet.addTab({ "name": "name_" + i, "title": data[i].countryName }); } }); } }); isc.VLayout.create({ members: [tabSet, myButton], membersMargin: 5, height: 300, width: 700 });
Thank you & Best regards
Blama
Comment