SMART datagrid v.1 > Classes > GridBase
Since current browsers only provide size change event in browser level, sometimes they cannot automatically change when the size of grid should be changed, and if call this method, the size of grid will be adjusted to grid container.
document.getElementById('layout').onlayout = function () {
grid.resetSize();
});