function populateMirroring(tab, exti){ //alert(tab); var store = new dojo.data.ItemFileReadStore({ url: "com.php?r=r_mirroringData" }); var model = new dojox.grid.data.DojoData(null, store, { query: { distribution: '*' }, clientSort: true }); var structure = { noscroll: true, cells: [[{ name: 'Distribution', field: "distribution", width: "20em" }, { name: 'Last Try', field: "lasttry", width: "10em" }, { name: 'Last Update', field: "lastupdate", width: "10em" }]] }; var grid = new dojox.Grid({ id: "grid", structure: structure, model: model, autoWidth: true }); //alert(grid); tab.setContent(grid.domNode); grid.render(); } --------------------- HTML OUTPUT: