syndeo
Version 8.6 Build 2922
I use the following script to auto fit columns in a standard query render script. Provided by @[deleted]
var grid = widget;
grid.bind("dataBound", autoS);
function autoS(e) {
grid.autoFitColumn("Attribute1");
grid.autoFitColumn("Attribute2");
grid.autoFitColumn("AttributeN");
}
This is working as expected when opening the query with the default output view
When the output is changed to a new tab, it appears that the render script is activated before the grid is populated and therefore making the column widths very small and not readable.
I have found that if you click the save button the grid re-renders and it looks fine.
Is this to be expected and is there further scripting needed?