javascript - Enhanced grid pagination throwing invalid argument error on dialog and portlet dialog settings -
i using dojox/widget/portlet,dojox/widget/portletdialogsettings , dijit/dialog webpage. these portlets , dialogs have enhanced grid within. have other similar widgets these 3 types in same page working fine. issue current widget only.
the enhanced grids uses pagination.
var plug = plugins: { pagination: { pagesizes: ["7", "14", "28", "all"], description: true, sizeswitch: true, pagestepper: true, gotobutton: true, maxpagestep: 4, defaultpagesize:7, position: "bottom" } }
when click on maximize/try open dialog, below error in dojo.js. script87: invalid argument. file: dojo.js, line: 15, column: 87982
the code corresponding error message isin below function in dojo.js.
_3a0.set = function setstyle(node,name,_3b2){ var n=dom.byid(node),l=arguments.length,op=(name=="opacity"); name=_3b1[name]?"cssfloat" in n.style?"cssfloat":"stylefloat":name; if(l==3){ return op?_3a9(n,_3b2):n.style[name]=_3b2; } for(var x in name){ _3a0.set(node,x,name[x]); } return _3a0.getcomputedstyle(n); }; return _3a0; }); }
the error points @ return op?_3a9(n,_3b2):n.style[name]=_3b2;
in above function. when removed pagination grid in dialog/portlet dialog, grid comes without pagination iot throws mentioned error. require pagination grids. grid defined as
var gridprod = new dojox.grid.enhancedgrid({ id: 'gridprod', store: store, structure: layout, nestedsorting: true, rowselector: '1px', plugins:plug }, document.createelement('div')); dojo.byid("gridproddiv").appendchild(gridprod.domnode); gridprod.startup();
please me figure out causing issue.
Comments
Post a Comment