I read the posts about dojox.Grid here, including the tab container, but it doesn't seem to solve my problem.
I have a grid that I add programmatically that works if the grid is in the "main" markup, but stops showing if I put the grid in the dialog.
Any ideas on why? Using dojo 1.3.1.
dijit.byId("myDialog").show(); var gridStore = new dojo.data.ItemFileReadStore({ data : { identifier : "id", items : [ {"id" : 1, "label" : "foo"}, {"id" : 2, "label" : "bar"}, {"id" : 3, "label" : "baz"} ] } }); var gridLayout = [ {name : "ID", field : "id", width : "50%"}, {name : "Label", field : "label", width : "50%"} ]; var grid = new dojox.grid.DataGrid({ store : gridStore, structure : gridLayout }, "gridNode"); grid.startup();
Markup:
<div dojoType="dijit.Dialog" id="myDialog" title="Multiple Addresses" style="width:400px;height:300px" > <div dojoType="dijit.layout.ContentPane" id="gridNode" style="positon:relative;width:100%;height:100%"></div>
Thanks for any help, Ruprict
source share