Public feed
#893147
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:
<div id="tabContainerTab0" class="dijitContentPane dijitTabPane" title="" widgetid="tabContainerTab0" style="position: relative; left: 0px; top: 0px; width: 1423px; height: 470px;">
<div id="grid" class="dojoxGrid" role="wairole:grid" hidefocus="hidefocus" tabindex="0" widgetid="grid" style="-moz-user-select: none; width: 1px;">
<div class="dojoxGrid-master-header" dojoattachpoint="headerNode" style="height: 0px;"/>
<div class="dojoxGrid-master-view" dojoattachpoint="viewsNode"/>
<span tabindex="0" dojoattachpoint="lastFocusNode"/>
</div>
</div>