Hi, I had to create a patch for v8.2. A call to recalculateSummaries() before the grid was drawn was throwing an error.
See below
See below
Code:
//added null check on this.body isc.ListGrid.getPrototype().addProperties({ refreshGroupSummary:function(_1){ if(!this.isGrouped || !this.showGroupSummary|| !this.groupTree) return; if( this.showGroupSummaryInHeader){ if (_1!=null ){ var _2=this.groupTree.getParent( this.groupTree.get(_1)); this.applyGroupSummaryToHeader(_2); this.refreshRow( this.groupTree.indexOf(_2)) } else{ var _3=this.groupTree.findAll("$52e" , true); for( var i=0;i<_3.length;i++){ this.applyGroupSummaryToHeader(_3[i]) } this.markForRedraw("refresh group summaries" ) } }else{ var _5; if (_1!=null )_5= this.groupTree.getLength(); this.groupTree.$736(); if (_1==null ||(_5!= this.groupTree.getLength())){ //added null check here if(this.body!=null){ this.body.markForRedraw( "refresh group summaries") } } else{ var _6=this.groupTree.getParent( this.groupTree.get(_1)); if(_6){ var _7=this.groupTree.indexOf(_6),_8= this.groupTree.getChildren(_6); for( var i=0;i<_8.length;i++){ if (_8[i].isGroupSummary) this.refreshRow(_7+1+i) } } } } } } )
Comment