oboutGrid.prototype.synchronizeHorizontalScrolling=function(){if(this.NumberOfFixedColumns==0){if(this.GridHeaderContainer)this.GridHeaderContainer.firstChild.scrollLeft=this.HorizontalScroller.firstChild.scrollLeft;this.GridBodyContainer.firstChild.scrollLeft=this.HorizontalScroller.firstChild.scrollLeft;if(this.AllowFiltering&&this.FilterContainer)this.FilterContainer.firstChild.scrollLeft=this.HorizontalScroller.firstChild.scrollLeft;if(this.GridColumnsFooterContainer)this.GridColumnsFooterContainer.firstChild.scrollLeft=this.HorizontalScroller.firstChild.scrollLeft;this.ScrollTop=this.GridBodyContainer.scrollTop;this.ScrollLeft=this.HorizontalScroller.firstChild.scrollLeft}else window.setTimeout(this.ID+".synchronizeFixedColumns()",250)};oboutGrid.prototype.synchronizeBodyHorizontalScrolling=function(){if(this.GridBodyContainer.firstChild.scrollLeft!=this.HorizontalScroller.firstChild.scrollLeft)this.HorizontalScroller.firstChild.scrollLeft=this.GridBodyContainer.firstChild.scrollLeft};oboutGrid.prototype.initializeScrollingSettings=function(){var a=this;if(this.ScrollWidth!="0px"){var b=this.getHorizontalScrollBarHeight(this.HorizontalScroller.firstChild);if(this.HorizontalScroller.offsetHeight!=b){var d=this.HorizontalScroller.offsetHeight-b;this.HorizontalScroller.style.height=b+"px";this.HorizontalScroller.firstChild.style.height=this.HorizontalScroller.firstChild.offsetHeight-d+"px"}if(this.NumberOfFixedColumns!=0&&this.FixedColumnsPosition==2){this.rightAlignGridContent();this.PreviousFixedColumnsWidth=this.getFixedColumnsWidth()}this.HorizontalScroller.firstChild.onscroll=function(){a.synchronizeHorizontalScrolling()};this.GridBodyContainer.firstChild.onscroll=function(){a.synchronizeBodyHorizontalScrolling()};this.PreviousScrollLeft=0;this.HorizontalScroller.firstChild.scrollLeft=this.ScrollLeft;this.synchronizeHorizontalScrolling()}if(this.ScrollHeight!="0px")if(this.Width.indexOf("%")!=-1)if(this.GridBodyContainer.offsetWidth-this.GridBodyContainer.firstChild.offsetWidth>0)this.GridBodyContainer.firstChild.style.marginRight=this.GridBodyContainer.firstChild.offsetWidth-this.GridBodyContainer.offsetWidth+"px";this.keepVerticalScrollingInSynch();(this.ScrollHeight.indexOf("%")!=-1||this.Height.indexOf("%")!=-1)&&this.addEvent(window,"resize",function(){a.keepVerticalScrollingInSynch()});if(this.ScrollHeight!="0px"&&this.ScrollHeight.indexOf("%")==-1){var c=this.isIEWithDoctype();if(this.isIE&&(this.isIE6||!c)){this.keepFixedVerticalScrollingInSynch();this.GridBodyContainer.firstChild.onresize=function(){a.keepFixedVerticalScrollingInSynch()}}}};oboutGrid.prototype.updateHeightOnResize=function(){this.keepVerticalScrollingInSynch()};oboutGrid.prototype.keepVerticalScrollingInSynch=function(){if(this.ScrollHeight.indexOf("%")!=-1||this.Height!="0px"){this.GridBodyContainer.style.height="50%";var a=this.GridMainContainer.offsetHeight;if(this.HeaderCornersContainer)a-=this.HeaderCornersContainer.offsetHeight;if(this.GridGroupingAreaContainer)a-=this.GridGroupingAreaContainer.offsetHeight;if(this.GridHeaderContainer)a-=this.GridHeaderContainer.offsetHeight;if(this.FilterContainer)a-=this.FilterContainer.offsetHeight;if(this.GridColumnsFooterContainer)a-=this.GridColumnsFooterContainer.offsetHeight;if(this.HorizontalScroller)a-=this.HorizontalScroller.offsetHeight;if(this.GridFooterContainer)a-=this.GridFooterContainer.offsetHeight;if(this.FooterCornersContainer)a-=this.FooterCornersContainer.offsetHeight;if(a<0)a=0;this.GridBodyContainer.style.height=a+"px";this.applyCrossBrowserFixes()}else if(this.ScrollHeight!="0px")if(this.isIE7&&this.isIEWithDoctype())if(parseInt(this.ScrollHeight)<this.GridBodyContainer.firstChild.offsetHeight&&this.hasVerticalScrollBar(this.GridBodyContainer)==false)this.GridBodyContainer.style.overflowY="scroll";else this.GridBodyContainer.style.overflowY="auto"};oboutGrid.prototype.keepFixedVerticalScrollingInSynch=function(){if(this.GridBodyContainer.firstChild.offsetHeight>parseInt(this.ScrollHeight))this.GridBodyContainer.style.height=this.ScrollHeight;else this.GridBodyContainer.style.height=this.GridBodyContainer.firstChild.offsetHeight+"px"};oboutGrid.prototype.rightAlignGridContent=function(){var a=this.getVisibleColumnsWidth(true);this.GridBodyContainer.firstChild.style.marginLeft="-"+(a-this.ColumnsCollection[this.getIndexOfHelperColumnsForFixedColumns()].Width)+"px";if(this.GridHeaderContainer)this.GridHeaderContainer.firstChild.style.marginLeft=this.GridBodyContainer.firstChild.style.marginLeft;if(this.ShowColumnsFooter)this.GridColumnsFooterContainer.firstChild.style.marginLeft=this.GridBodyContainer.firstChild.style.marginLeft;if(this.AllowFiltering)this.FilterContainer.firstChild.style.marginLeft=this.GridBodyContainer.firstChild.style.marginLeft};oboutGrid.prototype.scrollDownBody=function(){this.GridBodyContainer.scrollTop=this.GridBodyContainer.firstChild.offsetHeight};oboutGrid.prototype.hideScrolledColumns=function(){for(var a=0;a<this.ColumnsCollection.length;a++)if(this.ColumnsCollection[a].RealVisible!=this.ColumnsCollection[a].Visible){this.ColumnsCollection[a].Visible=this.ColumnsCollection[a].RealVisible;this.hideColumn(a,false,false)}else if(this.ColumnsCollection[a].Visible){this.ColumnsCollection[a].Visible=false;this.showColumn(a,false,false)}};oboutGrid.prototype.markColumnsAsScrolled=function(a){if(this.ScrolledColumnsIndexes.indexOf(","+a+",")==-1)this.ScrolledColumnsIndexes+=a+",";this.updateScrolledColumnsWidth()};oboutGrid.prototype.unmarkColumnsAsScrolled=function(a){this.ScrolledColumnsIndexes=this.ScrolledColumnsIndexes.replace(","+a+",",",");this.updateScrolledColumnsWidth()};oboutGrid.prototype.updateScrolledColumnsWidth=function(){var b=0;if(this.ScrolledColumnsIndexes!=","){for(var c=this.ScrolledColumnsIndexes.substr(1,this.ScrolledColumnsIndexes.length-2).split(","),a=0;a<c.length;a++)b+=this.ColumnsCollection[c[a]].Width;this.ScrolledColumnsWidth=b}else if(this.getFixedColumnsWidth()!=this.PreviousFixedColumnsWidth){for(var a=this.ColumnsCollection.length-this.NumberOfFixedColumns-1;a>1;a--)if(this.ColumnsCollection[a].Visible){this.PreviousFixedColumnsWidth=this.getFixedColumnsWidth();this.markColumnsAsScrolled(a);break}}else this.ScrolledColumnsWidth=b};oboutGrid.prototype.getFixedColumnsWidth=function(){var d=0,b,c;if(this.FixedColumnsPosition==1){b=0;c=this.NumberOfFixedColumns}else{b=this.ColumnsCollection.length-this.NumberOfFixedColumns;c=this.ColumnsCollection.length}for(var a=b;a<c;a++)if(this.ColumnsCollection[a].Visible)d+=this.ColumnsCollection[a].Width;return d};oboutGrid.prototype.synchronizeFixedColumns=function(){var b=this.HorizontalScroller.firstChild.scrollLeft;if(this.PreviousScrollLeft==b)return;else this.PreviousScrollLeft=b;var g=parseInt(this.ScrollWidth);if(this.FixedColumnsPosition==1){for(var f=this.getVisibleColumnsWidth(false),c=false,a=this.NumberOfFixedColumns;a<this.ColumnsCollection.length-1;a++)if(f>g){if(this.ColumnsCollection[a].Visible)if(b>=this.ScrolledColumnsWidth){this.hideColumn(a,false,false);this.markColumnsAsScrolled(a);f=this.getVisibleColumnsWidth(false);c=true}else break}else break;if(!c)for(var a=this.ColumnsCollection.length-2;a>=this.NumberOfFixedColumns;a--)if(this.ColumnsCollection[a].RealVisible==true&&this.ColumnsCollection[a].Visible==false)if(b<=this.ScrolledColumnsWidth-this.ColumnsCollection[a].Width){this.showColumn(a,false,false);this.unmarkColumnsAsScrolled(a)}else break}else{for(var e=false,c=false,d=this.getFixedColumnsWidth()-this.PreviousFixedColumnsWidth,a=1;a<this.ColumnsCollection.length-this.NumberOfFixedColumns;a++)if(this.ColumnsCollection[a].RealVisible==true&&this.ColumnsCollection[a].Visible==false)if(b-d>=this.ScrolledColumnsWidth){this.showColumn(a,false,false);this.markColumnsAsScrolled(a);e=true}else break;var h=false;if(!e)for(var a=this.ColumnsCollection.length-this.NumberOfFixedColumns-1;a>0;a--)if(this.ColumnsCollection[a].Visible)if(b-d<=this.ScrolledColumnsWidth-this.ColumnsCollection[a].Width){this.hideColumn(a,false,false);this.unmarkColumnsAsScrolled(a);d=this.getFixedColumnsWidth()-this.PreviousFixedColumnsWidth;c=true}else break;if(e||c){this.rightAlignGridContent();if(b==0){this.PreviousFixedColumnsWidth=this.getFixedColumnsWidth();this.ScrolledColumnsIndexes=",";this.updateScrolledColumnsWidth()}}}};try{if(Sys)Sys.Application&&Sys.Application.notifyScriptLoaded()}catch(ex){};