0
"죄송합니다. 오류가 발생했습니다". 내가 만든 향상된 그리드를 렌더링하는 동안.오류 발생 프로그래밍 방식으로 DOJOX 강화 격자를 생성하는 중
이json으로 개체가 나는 렌더링하기 위해 애 쓰고 requestattribute "dataitems"에 설정되어
{"items":[{"prinId":"0280","subClientId":"5187","clientId":"9006","sysId":"3759"}],"label":"userId","identifier":"requestId"}
도장 코드
<script>dojoConfig = {async: true, parseOnLoad: true}</script>
<script>
require([
"dojo/_base/lang",
"dojox/grid/EnhancedGrid",
"dojo/data/ItemFileWriteStore",
"dojo/dom","dojox/grid/cells",
"dojox/grid/enhanced/plugins/Pagination",
"dojox/grid/enhanced/plugins/NestedSorting",
"dojo/on",
"dojo/_base/event",
"dojo/parser",
"dojo/_base/array",
"dojo/dom",
"dojox/grid/enhanced/plugins/IndirectSelection",
"dijit/Dialog",
"dijit/form/Form",
"dijit/form/TextBox",
"dijit/form/DateTextBox",
"dojo/domReady!"],
function(lang, EnhancedGrid, ItemFileWriteStore, dom,gridCells,Pagination,NestedSorting,on,event,parser,array,dom,IndirectSelection,Dialog,Form){
var store=new dojo.data.ItemFileReadStore({data: <%=request.getAttribute("dataItems")%>});
var layout = [{name: 'Client Bank Id', field: 'clientId', width: '130px'},
{name: 'Sub Client Bank Id', field: 'subClientId', width: '130px'},
{name: 'Sys Id', field: 'sysId', width: '130px'},
{name: 'Prin Id', field: 'prinId', width: '220px'}];
/*create a new grid*/
var grid = new dojox.grid.EnhancedGrid({
id: 'grid',
store: store,
structure: layout,
plugins: {
nestedSorting: true
/* pagination: {
pageSizes: ["25", "50", "100", "All"],
description: true,
sizeSwitch: true,
pageStepper: true,
gotoButton: true,
maxPageStep: 3,
position: "bottom"
} */
}
},document.createElement('div'));
/*append the new grid to the div*/
dojo.byId("gridDiv").appendChild(grid.domNode);
grid.startup();
});
</script>
감사합니다. IDENTIFIER 값을 변경하고 나면 효과가있었습니다. –