"resize" works like a charm! I searched for it for a long time (I didnβt know what I needed to look for), thanks.
I use this routine to dynamically determine if a tab has more than one datagrid, because I may not know the identifier of one grid, maybe someone else can use it:
dojo.query('div#container div[id^="gridNode_"]').forEach(function(node, index, arr) { dijit.byId(node.id).resize(); });
This will check the div with id="container" (skip this part if you want to search the entire DOM) for the div with an id starting with "gridNode_" and apply the "resize" to these widgets.
source share