Hello, I've got a use case where I want tu use a tabSet as an expansion component. This TabSet contains a grid with autoFitData: "vertical".
The problem with it, I think, is that when the TabSet is created, the grid has not yet received its data, so the autoFit functionality has not yet taken effect, and .
Do you have any suggestions or best practices for managing this use case?
The problem with it, I think, is that when the TabSet is created, the grid has not yet received its data, so the autoFit functionality has not yet taken effect, and .
Do you have any suggestions or best practices for managing this use case?
Code:
isc.ListGrid.create({ ID: "countryList", width: "100%", height: "100%", alternateRecordStyles: true, canExpandRecords: true, selectOnExpandRecord: false, getExpansionComponent: function (record) { var aGrid = isc.ListGrid.create({ data: countryData, fields: [ { name: "countryCode", title: "Flag", width: 60, type: "image", imageURLPrefix: "flags/24/", imageURLSuffix: ".png" }, {name: "countryName", title: "Country"}, {name: "capital", title: "Capital"}, {name: "continent", title: "Continent"} ], autoFitData: "vertical", autoFitMaxHeight: 300 }) var layout = isc.HLayout.create({ membersMargin: 10, members: [ aGrid ] }) var tabSet = isc.TabSet.create({ tabs: [ {title: "a grid", pane: layout} ] }) return tabSet; }, data: countryData, fields: [ { name: "countryCode", title: "Flag", width: 60, type: "image", imageURLPrefix: "flags/24/", imageURLSuffix: ".png" }, {name: "countryName", title: "Country"}, {name: "capital", title: "Capital"}, {name: "continent", title: "Continent"} ], leaveScrollbarGap: false })
Comment