this.rowcntContent = this.size = this.rows.length;
},
- printAll: function(exportType) {
+ printAll: function() {
this.liveGrid.showMsg(Rico.getPhraseById('exportInProgress'));
- Rico.runLater(10,this,'_printAll',exportType); // allow message to paint
+ Rico.runLater(10,this,'_printAll'); // allow message to paint
},
/**
* Support function for printAll()
*/
- _printAll: function(exportType) {
+ _printAll: function() {
this.liveGrid.exportStart();
this.exportBuffer(this.getRows(0,this.totalRows));
- this.liveGrid.exportFinish(exportType);
+ this.liveGrid.exportFinish();
},
/**
* Copies visible rows to a new window as a simple html table.
*/
- printVisible: function(exportType) {
+ printVisible: function() {
this.liveGrid.showMsg(Rico.getPhraseById('exportInProgress'));
- Rico.runLater(10,this,'_printVisible',exportType); // allow message to paint
+ Rico.runLater(10,this,'_printVisible'); // allow message to paint
},
- _printVisible: function(exportType) {
+ _printVisible: function() {
this.liveGrid.exportStart();
this.exportBuffer(this.visibleRows());
- this.liveGrid.exportFinish(exportType);
+ this.liveGrid.exportFinish();
},
/**
},
remainingHt: function() {
- var tabHt;
+ var tabHt=this.outerDiv.offsetHeight;
var winHt=Rico.windowHeight();
var margin=Rico.isIE ? 15 : 10;
// if there is a horizontal scrollbar take it into account
switch (this.sizeTo) {
case 'window':
var divTop=Rico.cumulativeOffset(this.outerDiv).top;
- tabHt=Math.max(this.tabs[0].offsetHeight,this.tabs[1].offsetHeight);
- Rico.log("remainingHt, winHt="+winHt+' tabHt='+tabHt+' gridY='+divTop);
- return winHt-divTop-tabHt-this.options.scrollBarWidth-margin; // allow for scrollbar and some margin
+ Rico.log("remainingHt/window, winHt="+winHt+' tabHt='+tabHt+' gridY='+divTop);
+ return winHt-divTop-tabHt-margin; // allow for scrollbar and some margin
case 'parent':
var offset=this.offsetFromParent(this.outerDiv);
- tabHt=Math.max(this.tabs[0].offsetHeight,this.tabs[1].offsetHeight);
if (Rico.isIE) Rico.hide(this.outerDiv);
- var parentHt=this.outerDiv.parentNode.offsetHeight;
+ var parentHt=this.outerDiv.parentNode.clientHeight;
if (Rico.isIE) Rico.show(this.outerDiv);
- Rico.log("remainingHt, parentHt="+parentHt+' gridY='+offset+' winHt='+winHt+' tabHt='+tabHt);
- return parentHt - tabHt - offset - this.options.scrollBarWidth;
+ Rico.log("remainingHt/parent, parentHt="+parentHt+' offset='+offset+' tabHt='+tabHt);
+ return parentHt-tabHt-offset-margin;
case 'data':
case 'body':
var bodyHt=Rico.isIE ? document.body.scrollHeight : document.body.offsetHeight;
Rico.log("remainingHt, winHt="+winHt+' pageHt='+bodyHt+' remHt='+remHt);
return remHt;
default:
- tabHt=Math.max(this.tabs[0].offsetHeight,this.tabs[1].offsetHeight);
Rico.log("remainingHt, winHt="+winHt+' tabHt='+tabHt);
if (this.sizeTo.slice(-1)=='%') winHt*=parseFloat(this.sizeTo)/100.0;
else if (this.sizeTo.slice(-2)=='px') winHt=parseInt(this.sizeTo,10);
- return winHt-tabHt-this.options.scrollBarWidth-margin; // allow for scrollbar and some margin
+ return winHt-tabHt-margin; // allow for scrollbar and some margin
}
},
}
var self=this;
this.menu.showmenu(e,function() { self.closeMenu(); });
+ return false;
},
closeMenu: function() {
},
unhighlightCell: function(cell) {
- if (cell==null) return;
- Rico.removeClass(cell,this.options.highlightClass);
+ if (cell) Rico.removeClass(cell,this.options.highlightClass);
},
selectRow: function(r) {