//v.3.5 build 120731 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dhtmlXGridObject.prototype.enableBlockSelection=function(b){if(typeof this._bs_mode=="undefined"){var c=this;this.obj.onmousedown=function(b){c._bs_mode&&c._OnSelectionStart(b||event,this);return!0};this._CSVRowDelimiter=this.csv.row;this.attachEvent("onResize",function(){c._HideSelection();return!0});this.attachEvent("onGridReconstructed",function(){c._HideSelection();return!0});this.attachEvent("onFilterEnd",this._HideSelection)}if(b===!1)return this._bs_mode=!1,this._HideSelection();else this._bs_mode= !0};dhtmlXGridObject.prototype.forceLabelSelection=function(b){this._strictText=convertStringToBoolean(b)};dhtmlXGridObject.prototype.disableBlockSelection=function(){this.obj.onmousedown=null}; dhtmlXGridObject.prototype._OnSelectionStart=function(b){var c=this;if(b.button!=2){var a=b.srcElement||b.target;if(this.editor){if(a.tagName&&(a.tagName=="INPUT"||a.tagName=="TEXTAREA"))return;this.editStop()}c.isActive||c.setActive(!0);var d=this.getPosition(this.obj),f=b.clientX-d[0]+(document.body.scrollLeft||(document.documentElement?document.documentElement.scrollLeft:0)),h=b.clientY-d[1]+(document.body.scrollTop||(document.documentElement?document.documentElement.scrollTop:0));this._CreateSelection(f- 4,h-4);if(a==this._selectionObj)this._HideSelection(),this._startSelectionCell=null;else{for(;a.tagName.toLowerCase()!="td";)a=a.parentNode;this._startSelectionCell=a}if(this._startSelectionCell&&!this.callEvent("onBeforeBlockSelected",[this._startSelectionCell.parentNode.idd,this._startSelectionCell._cellIndex]))return this._startSelectionCell=null;this.obj.onmousedown=null;this.obj[_isIE?"onmouseleave":"onmouseout"]=function(){c._blsTimer&&window.clearTimeout(c._blsTimer)};this.obj.onmmold=this.obj.onmousemove; this._init_pos=[f,h];this._selectionObj.onmousemove=this.obj.onmousemove=function(a){a=a||b;a.returnValue=!1;c._OnSelectionMove(a)};this._oldDMP=document.body.onmouseup;document.body.onmouseup=function(a){a=a||b;c._OnSelectionStop(a,this);return!0};this.callEvent("onBeforeBlockSelection",[]);document.body.onselectstart=function(){return!1}}}; dhtmlXGridObject.prototype._getCellByPos=function(b,c){this._fake&&(b+=this._fake.entBox.offsetWidth);for(var a=0,d=0;d=j?(this.objBox.scrollLeft+=20,g=!0):d-20=i&&!this._realfake?(this.objBox.scrollTop+=20,g=!0):f-20this._cCount)f=this._cCount;for(var h=0,l=c;l