여기 dojox.Grid에 대한 게시물을 읽었습니다. 여기에는 tabcontainer에 대한 게시물도 포함되어 있지만 문제가 해결되지 않는 것 같습니다.dijit.Dialog에 Dojox.grid를 두는 법
격자가 "주"마크 업에있는 경우 처리 기능을 프로그래밍 방식으로 추가하지만 그리드를 대화 상자에 놓으면 표시가 중단됩니다.
이유에 대한 아이디어가 있으십니까? 도장 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"}
]
}
});
/* A simple layout that specifies column headers and
* mappings to fields in the store */
var gridLayout = [
{name : "ID", field : "id", width : "50%"},
{name : "Label", field : "label", width : "50%"}
];
/* Programmatically construct a data grid */
var grid = new dojox.grid.DataGrid({
store : gridStore,
structure : gridLayout
}, "gridNode");
/* Tell the grid to lay itself out since
* it was programmatically constructed */
grid.startup();
마크 업입니다 : 어떤 도움
<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>
감사합니다, Ruprict