Solved! Go to Solution.
dataGrid.addCssRule("#" + dataGrid.id, "width: " + newsize + "px");
dataGrid.addCssRule("#" + dataGrid.id, "width: " + newsize + "px");
require([ "dojo/ready","dojo/parser"], function (ready, parser){ // Other Code parser.parse(); ready(function (){ // dataStore = new Memory ({data}); yourGrid.set("store", dataStore ); yourGrid.startup(); // Other Code }); });