/*!@license
 * Infragistics.Web.ClientUI Grid Multi Headers 13.1.20131.2523
 *
 * Copyright (c) 2011-2014 Infragistics Inc.
 *
 * http://www.infragistics.com/
 *
 * Depends on:
 * Depends on:
 *	jquery-1.4.4.js
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 *	infragistics.ui.grid.framework.js
 *	infragistics.ui.shared.js
 *	infragistics.dataSource.js
 *	infragistics.util.js
 */
if(typeof jQuery!=="function"){throw new Error("jQuery is undefined")}(function($){$.widget("ui.igGridColumnFixing",{events:{columnFixing:"columnFixing",columnFixed:"columnFixed",columnUnfixing:"columnUnfixing",columnUnfixed:"columnUnfixed",columnFixingRefused:"columnFixingRefused"},css:{fixedContainer:"ui-iggrid-fixedcontainer",leftFixedContainer:"ui-iggrid-fixedcontainer-left",rightFixedContainer:"ui-iggrid-fixedcontainer-right",headerButtonIcon:"ui-icon ui-corner-all ui-icon-pin-w",headerButtonIconHover:"",headerButtonUnfixIcon:"ui-icon ui-corner-all ui-icon-pin-s"},internalErrors:{NotValidIndex:-1,FixingRefused:-2,AlreadyFixed:-3},options:{headerFixButtonText:$.ig.ColumnFixing.locale.headerFixButtonText,headerUnfixButtonText:$.ig.ColumnFixing.locale.headerUnfixButtonText,showFixButtons:true,syncRowHeights:true,scrollDelta:40,fixingDirection:"left",columnSettings:[{columnKey:null,columnIndex:null,allowFixing:true,isFixed:false}]},scrollContainerCheckValue:2,_createWidget:function(){$.Widget.prototype._createWidget.apply(this,arguments)},_unfixColumnInternal:function(colInd){var noCancel,res,col=this.grid.options.columns[colInd];noCancel=this._trigger(this.events.columnUnfixing,null,{columnIndex:colInd,columnKey:col.key,owner:this.grid});if(noCancel){res=this.unfixColumn(colInd);if(res.error===true){this._trigger(this.events.columnUnfixed,null,{columnIndex:colInd,columnKey:col.key,owner:this.grid})}}},unfixColumn:function(colIdentifier){var col,colInd,res,colWidth,scrollContainer,searchFixedColsIndex,fixedContainer,colIdentifierType=$.type(colIdentifier),i,cols=this.grid.options.columns,colsLength=cols.length,grid=this.grid,gridId=grid.id(),tableIndex,headerContainer,footerContainer,fixedHeaderContainerId=grid.id()+"_fixedHeaderContainer",fixedBodyContainerId=grid.id()+"_fixedBodyContainer",fixedFooterContainerId=grid.id()+"_fixedFooterContainer";res={error:this.internalErrors.None,result:true,col:null,columnIndex:colInd};if(colIdentifierType==="number"){colInd=colIdentifier}else if(colIdentifierType==="string"){for(i=0;i<colsLength;i++){if(cols[i].key===colIdentifier){colInd=i;break}}if(i===colsLength){res.result=false;res.error=this.internalErrors.NotValidIdentifier;return res}}col=this.grid._fixedColumns[colInd];if(col===null||col===undefined){res.result=false;res.error=this.internalErrors.NotValidIdentifier;return res}res.columnIndex=colInd;res.col=col;if(this.grid.container().find("#"+gridId+"_"+col.key).length===0){tableIndex=colInd+1}else{tableIndex=this.grid.container().find("#"+gridId+"_"+col.key).index()+1}if(grid.options.virtualization===true||grid.options.rowVirtualization===true){scrollContainer=this.grid._vdisplaycontainer()}else{scrollContainer=this.grid.scrollContainer()}colWidth=this._unfixColumnByContainer(tableIndex,fixedBodyContainerId,scrollContainer,true);if(grid.options.showHeader&&grid.options.fixedHeaders&&grid.options.height!==null){headerContainer=this.grid.headersTable().parent("div");colWidth=this._unfixColumnByContainer(tableIndex,fixedHeaderContainerId,headerContainer,false,true)}footerContainer=this.grid._fixedfooters();if(grid.options.showFooter&&grid.options.fixedFooters&&grid.options.height!==null&&footerContainer.length>0){this._unfixColumnByContainer(tableIndex,fixedFooterContainerId,footerContainer,false,false,colWidth)}this.grid._hscrollbar().css({width:scrollContainer.width()+"px",left:0});col.fixed=false;$.each(this.grid._fixedColumns,function(ind,c){if(c.key===col.key){searchFixedColsIndex=ind;return false}});if(searchFixedColsIndex>-1){this.grid._visibleColumnsArray=undefined;cols.splice(colInd,1);cols.splice(this.grid._fixedColumns.length-1,0,col);this.grid._onColumnFixed(colInd,false);this.grid._fixedColumns.splice(searchFixedColsIndex,1)}if(this.grid._fixedColumns.length===0){fixedContainer=$("#"+fixedBodyContainerId);if(this._onMouseWheelHandler){scrollContainer.unbind({keydown:this._onKeyDown,mousewheel:this._onMouseWheelHandler});fixedContainer.unbind({mousewheel:this._onMouseWheelHandler});this._onKeyDown=null;this._onMouseWheelHandler=null}if(this._DOMMouseScroll!==null&&this._DOMMouseScroll!==undefined){scrollContainer.unbind({DOMMouseScroll:this._DOMMouseScroll});this._DOMMouseScroll=null}$("#"+this.element[0].id+"_mainFixedContainer").remove();if(this.options.fixingDirection==="right"){scrollContainer.css({"overflow-y":"auto"})}this.grid._hscrollbar().css({width:"100%",left:0});if(this.grid.options.width===null){$("#"+this.grid.id()+"_container").css("width","")}}this.grid._updateHeaderColumnIndexes();this.grid._hscrollbarcontent().scrollLeft(0);this._changeStyleHeaderButton(col.key,false);return res},unfixAllColumns:function(){var i,cols=this.grid._fixedColumns.clone(),colsLength=cols.length;if(colsLength>0){for(i=colsLength-1;i>=0;i--){this.unfixColumn(cols[i].key)}}},_unfixColumnByContainer:function(colInd,fixedContainerId,scrollContainer,isDataContainer,isHeaderContainer,cW){var table,tdsFirst,fixedContainer=$("#"+fixedContainerId),fixedContainerWidth=fixedContainer.width(),trs,oTable,oTableWidth,col,colWidth,width;oTable=scrollContainer.find("table");if(scrollContainer.length===0){scrollContainer=$("#"+this.grid.id());oTable=scrollContainer}oTableWidth=oTable.width();table=fixedContainer.find("table");if(fixedContainer.length===0){return}col=fixedContainer.find("colgroup col:nth-child("+colInd+")").detach();colWidth=col.width();if(colWidth===0){colWidth=$(fixedContainer.find("tr:nth-child(1) td:nth-child("+colInd+"), th:nth-child("+colInd+")")[0]).outerWidth()}if(col.length>0){col.prependTo(oTable.find("colgroup"))}if(colWidth===undefined||colWidth===null||colWidth===0){if(col.length>0){colWidth=col.width()}if((colWidth===0||colWidth===null)&&cW!==undefined){colWidth=cW}}if(oTableWidth>0){oTableWidth+=colWidth;oTable.width(oTableWidth)}if(colWidth!==null){width=fixedContainerWidth-colWidth;table.width(width)}tdsFirst=fixedContainer.find("td:nth-child("+colInd+"), th:nth-child("+colInd+")").detach();trs=oTable.find("tr");trs.each(function(ind,tr){var $td=$(tdsFirst[ind]);$td.prependTo($(tr))});if(isDataContainer){scrollContainer.scrollTop(0);this.grid._hscrollbarinner().css({width:(this.grid._hasVerticalScrollbar&&this.grid.options.fixedHeaders?oTableWidth-this.grid._scrollbarWidth():oTableWidth)+"px",left:0})}if(this.grid._fixedColumns.length===1){trs.height("")}if(this.grid.options.width===null){if(isHeaderContainer&&!$.ig.util.isIE){oTable.width(oTableWidth+this.grid._scrollbarWidth())}if(this.grid._fixedColumns.length===1){oTable[0].style.width=""}}return colWidth},_fixColumnInternal:function(colInd){var noCancel,res,col=this.grid.options.columns[colInd],grid=this.grid;noCancel=this._trigger(this.events.columnFixing,null,{columnIndex:colInd,columnKey:col.key,owner:grid});if(noCancel){res=this.fixColumn(colInd);if(res.error===this.internalErrors.FixingRefused||res.result===false){this._trigger(this.events.columnFixingRefused,null,{columnIndex:colInd,columnKey:col.key,owner:grid})}else{this._trigger(this.events.columnFixed,null,{columnIndex:colInd,columnKey:col.key,owner:grid})}}},fixColumn:function(colIdentifier){var col,colWidth,colInd,res,scrollContainer,colIdentifierType=$.type(colIdentifier),grid=this.grid,gridId=grid.id(),tableIndex,gridWidth=parseInt(grid.options.width,10),isFixedContainer=false,headerContainer,footerContainer,fixedHeaderContainerId=gridId+"_fixedHeaderContainer",fixedBodyContainerId=gridId+"_fixedBodyContainer",fixedFooterContainerId=gridId+"_fixedFooterContainer",i,cols=this.grid.options.columns,colsLength=cols.length;res={error:this.internalErrors.None,result:true,col:null,columnIndex:colInd};if(colIdentifierType==="number"){colInd=colIdentifier}else if(colIdentifierType==="string"){for(i=0;i<colsLength;i++){if(cols[i].key===colIdentifier){colInd=i;break}}if(i===colsLength){res.result=false;res.error=this.internalErrors.NotValidIdentifier;return res}}col=cols[colInd];if(col===null||col===undefined){res.result=false;res.error=this.internalErrors.NotValidIdentifier;return res}if(col.fixed===true){res.result=false;res.error=this.internalErrors.AlreadyFixed;return res}res.columnIndex=colInd;res.col=col;if(isNaN(gridWidth)){gridWidth=this.grid.container().outerWidth()}if($("#"+gridId+"_"+col.key).outerWidth()+$("#"+gridId+"_mainFixedContainer").outerWidth()+this.grid._scrollbarWidth()>=gridWidth){res.result=false;res.error=this.internalErrors.FixingRefused;return res}if(grid._loadingIndicator){grid._loadingIndicator.show()}col.fixed=true;this.grid._fixedColumns.push(col);if($("#"+gridId+"_"+col.key).length===0){tableIndex=colInd+1}else{tableIndex=$("#"+gridId+"_"+col.key).index()+1}if(grid.options.virtualization===true||grid.options.rowVirtualization===true){scrollContainer=this.grid._vdisplaycontainer()}else{scrollContainer=this.grid.scrollContainer()}footerContainer=this.grid._fixedfooters();if(grid.options.showHeader&&grid.options.fixedHeaders&&grid.options.height!==null){headerContainer=this.grid.headersTable().parent("div");isFixedContainer=true;colWidth=this._fixColumnByContainer(tableIndex,fixedHeaderContainerId,headerContainer,false,true,false,isFixedContainer)}colWidth=this._fixColumnByContainer(tableIndex,fixedBodyContainerId,scrollContainer,true,false,false,isFixedContainer,colWidth);if(grid.options.showFooter&&grid.options.fixedFooters&&grid.options.height!==null&&footerContainer.length>0){this._fixColumnByContainer(tableIndex,fixedFooterContainerId,footerContainer,false,false,true,isFixedContainer,colWidth)}this.grid._visibleColumnsArray=undefined;cols.splice(colInd,1);cols.splice(this.grid._fixedColumns.length-1,0,col);this.grid._updateHeaderColumnIndexes();if(this.grid.options.width===null&&this.grid._fixedColumns.length===1){gridWidth=$("#"+gridId+"_mainFixedContainer").outerWidth()+$("#"+gridId).outerWidth();$("#"+this.grid.id()+"_container").css("width",gridWidth)}if(grid._loadingIndicator){grid._loadingIndicator.hide()}this.grid._onColumnFixed(colInd,true);this.grid._hscrollbarcontent().scrollLeft(0);this._changeStyleHeaderButton(col.key,true);return res},_fixColumnByContainer:function(colInd,fixedContainerId,scrollContainer,isDataContainer,isHeaderContainer,isFooterContainer,isFixedHeader,cW){var self=this,grid=this.grid,h,scroller=this.grid._hscrollbarcontent(),fixingDirection,fixedTable,tdsFirst,$thead,$tfoot,tdsLength,j,syncScrollContainers,mainFixedContainerId=grid.id()+"_mainFixedContainer",mainFixedContainer=$("#"+mainFixedContainerId),fixedContainer=$("#"+fixedContainerId),isNewFixedContainer=false,fixedControllerScrollerId=grid.id()+"_fixedContainerScroller",oTable,oTableWidth,scrollContainerHeight,col,heights=[],ind,fixedTDs,colWidth,width=0;oTable=scrollContainer.find("table");if(scrollContainer.length===0){scrollContainer=$("#"+grid.id());oTable=scrollContainer}if(cW!==undefined){colWidth=cW}else{colWidth=oTable.find("tr:nth-child(1)").find("td:nth-child("+colInd+"), th:nth-child("+colInd+")").eq(0).outerWidth()}if(mainFixedContainer.length===0){mainFixedContainer=$('<div id="'+mainFixedContainerId+'" data-fixed-container="true"></div>');mainFixedContainer.css({overflow:"hidden",position:"relative"});mainFixedContainer.addClass(this.css.fixedContainer);fixingDirection="left";if(this.options.fixingDirection==="left"){fixingDirection="left";mainFixedContainer.addClass(this.css.leftFixedContainer);mainFixedContainer.insertBefore(scrollContainer);mainFixedContainer.css({"float":"left",left:0})}else if(this.options.fixingDirection==="right"){fixingDirection="right";mainFixedContainer.addClass(this.css.rightFixedContainer);mainFixedContainer.insertBefore(scrollContainer);mainFixedContainer.css({"float":"right",right:0})}mainFixedContainer.attr("data-fixing-direction",fixingDirection)}if(fixedContainer.length===0){oTable.find("tr").map(function(ind){heights.push({h:this.offsetHeight,r:this})});isNewFixedContainer=true;fixedContainer=$('<div id="'+fixedContainerId+'"></div>');$('<table id="'+oTable.attr("id")+'_fixed" style="table-layout:fixed;" border=0 cellpadding=0 cellspacing=0><colgroup /><tbody /></table>').appendTo(fixedContainer);scrollContainerHeight=scrollContainer.height();if(isDataContainer){if(this.grid._hscrollbar().is(":visible")){scrollContainerHeight+=this.grid._hscrollbar().innerHeight()}fixedContainer.attr("data-fixed-container","true")}if(this.grid.options.height===null){scrollContainerHeight="100%"}fixedContainer.css({overflow:"hidden",position:"relative"});if(!isFooterContainer){fixedContainer.height(scrollContainerHeight)}fixedContainer.attr("data-scroll","true");fixedContainer.appendTo(mainFixedContainer);fixedTable=$("#"+oTable.attr("id")+"_fixed");fixedTable.addClass(oTable.attr("class"));if(isHeaderContainer){scrollContainer.height(scrollContainer.height());this.grid._renderFixedCaption()}if(isDataContainer){this.grid._fixedTable=fixedTable;if(this.options.fixingDirection==="right"){fixedContainer.css({"overflow-y":"auto"});scrollContainer.css({"overflow-y":"hidden"})}grid._renderFixedRecords(fixedTable,undefined,undefined,true);syncScrollContainers=function(direction){var scrollTop=fixedContainer.scrollTop();scrollTop+=-direction*self.options.scrollDelta;if(scrollTop<=0){scrollTop=0}fixedContainer.scrollTop(scrollTop);scrollContainer.scrollTop(scrollTop)};this._onMouseWheelHandler=function(event){var evt,direction,w,d;evt=event.originalEvent;w=evt.wheelDelta;d=evt.detail;if(d){if(w){direction=w/d/40*d>0?1:-1}else{direction=-d/3}}else{direction=w/120}syncScrollContainers(direction);if(grid.options.height===null){return true}return false};this._DOMMouseScroll=function(event){var dir=-1,delta;delta=-event.originalEvent.detail/3;if(delta>0){dir=1}syncScrollContainers(dir);if(grid.options.height===null){return true}event.preventDefault()};this._onKeyDown=function(event){var isUp=event.keyCode===$.ui.keyCode.UP,isDown=event.keyCode===$.ui.keyCode.DOWN;if(isUp){syncScrollContainers(1)}else if(isDown){syncScrollContainers(-1)}};if($.ig.util.isIE||this.options.fixingDirection==="right"){scrollContainer.bind({keydown:this._onKeyDown,mousewheel:this._onMouseWheelHandler,DOMMouseScroll:this._DOMMouseScroll})}scrollContainer.bind({scroll:function(){var top=$(this).scrollTop();fixedContainer.scrollTop(top)}});fixedContainer.bind({mousewheel:this._onMouseWheelHandler,DOMMouseScroll:this._DOMMouseScroll});if(this.options.fixingDirection==="right"){fixedContainer.bind({scroll:function(){var top=$(this).scrollTop();scrollContainer.scrollTop(top)},keydown:this._onMouseWheelHandler})}}}else{fixedTable=$("#"+oTable.attr("id")+"_fixed");width=fixedTable[0].clientWidth}oTableWidth=oTable.outerWidth();if(oTableWidth>0&&!(this.grid.options.width===null&&oTableWidth+this.grid._scrollbarWidth()===scrollContainer.width())){oTableWidth-=colWidth;oTable.width(oTableWidth)}width+=colWidth;fixedTable.width(width);col=scrollContainer.find("colgroup col:nth-child("+colInd+")").detach();if(col.length>0){col.appendTo(fixedTable.find("colgroup"))}ind=grid._fixedColumns.length-1;if(isHeaderContainer||isDataContainer&&!isFixedHeader){tdsFirst=oTable.find("th:nth-child("+colInd+"), td:nth-child("+colInd+")").detach();if(!isNewFixedContainer){fixedTDs=fixedTable.find("thead th:nth-child("+ind+"), td:nth-child("+ind+")")}}else{tdsFirst=oTable.find("td:nth-child("+colInd+")").detach();if(!isNewFixedContainer){fixedTDs=fixedTable.find("td:nth-child("+ind+")")}}if(isNewFixedContainer){if(isHeaderContainer||!isFixedHeader&&isDataContainer){if(oTable.find("tbody").next("thead").length>0){$thead=$("<thead></thead>").insertAfter(fixedTable.find("tbody"))}else{$thead=$("<thead></thead>").insertAfter(fixedTable.find("colgroup").eq(0))}oTable.find("thead tr").each(function(ci,tr){var $td=$(tdsFirst[ci]),css=$(this).attr("class");if(css===undefined||css===null){css=""}else{css=' class="'+css+'"'}$td.appendTo($("<tr"+css+"></tr>").appendTo($thead))})}else if(isFooterContainer){$tfoot=$("<tfoot></tfoot>").appendTo(fixedTable);oTable.find("tr").each(function(ci,tr){var id="",$td=$(tdsFirst[ci]),css=$(this).attr("class"),attr="";if(css===undefined||css===null){css=""}else{css=' class="'+css+'"'}if(tr.id){id=' id="'+tr.id+'_fixed"'}$(tr.attributes).each(function(){attr+=" "+this.nodeName+'="'+this.nodeValue+'" '});$td.appendTo($("<tr"+css+id+attr+"></tr>").appendTo($tfoot))})}fixedTable.find("tr").each(function(ind,$row){$(tdsFirst[ind]).appendTo($row)})}else{tdsLength=tdsFirst.length;if(tdsLength>0){for(j=0;j<tdsLength;j++){$(tdsFirst[j]).insertAfter($(fixedTDs[j]))}}}if(isNewFixedContainer){if(this.options.syncRowHeights){$.each(heights,function(ci,elem){elem.r.style.height=elem.h+"px"});fixedTable.find("tr").map(function(ci){this.style.height=heights[ci].h+"px"})}if(!isHeaderContainer&&scroller.length===1&&$("#"+fixedControllerScrollerId).length===0){$('<div style="height:'+this.grid._hscrollbar().height()+'px" id="'+fixedControllerScrollerId+'"></div>').appendTo(fixedContainer)}}if(isDataContainer&&oTableWidth>0){scrollContainer.scrollTop(0);this.grid._hscrollbar().css({width:scrollContainer.width()+"px",left:0});this.grid._hscrollbarinner().css({width:(this.grid._hasVerticalScrollbar&&this.grid.options.fixedHeaders?oTableWidth-this.grid._scrollbarWidth():oTableWidth)+"px",left:0});if(this.grid.options.height===null){h=scrollContainer.height()-mainFixedContainer.height();if(h>this.scrollContainerCheckValue){$("<div></div>").css("height",h).appendTo(mainFixedContainer)}}}if(this.grid.options.width===null&&oTable[0].style.width===""){oTable[0].style.width=oTable.outerWidth()+"px"}return colWidth},_headerRendered:function(sender,args){if(args.owner.element.attr("id")!==this.grid.element.attr("id")){return}if(this.options.showFixButtons===false){return}var i,cs,columnKey,cols=this.grid.options.columns,colsLength=cols.length,isFixed;for(i=0;i<colsLength;i++){columnKey=cols[i].key;cs=this._getColumnSettingByKey(columnKey,i);isFixed=false;if(cs!==null){if(cs.allowFixing===false){continue}if(cs.isFixed===true){isFixed=true}}this._renderHeaderCellButton(columnKey,isFixed)}},_getColumnSettingByKey:function(key,colIndex){var i,cs=this.options.columnSettings,csLength=cs.length,res=null;for(i=0;i<csLength;i++){if(cs[i].columnKey!==null&&cs[i].columnKey!==undefined){if(cs[i].columnKey===key){res=cs[i];break}}else if(cs[i].columnIndex!==null&&cs[i].columnIndex!==undefined){if(cs[i].columnIndex===colIndex){res=cs[i];break}}}return res},_id:function(){var i,res=this.grid.id(),argumentsLength=arguments.length;if(argumentsLength===0){return null}for(i=0;i<argumentsLength;i++){res+="_"+arguments[i]}return res},_renderHeaderCellButton:function(columnKey,isFixed){var self=this,$th=$("#"+this.grid.id()+"_"+columnKey),buttonId=this._id("header_cell","fixing",columnKey),$button,$divHeaderButtonContainer,columnFixingHeaderIconContainer;if($th.length===0){return}columnFixingHeaderIconContainer=$th.find(".ui-iggrid-indicatorcontainer");if(columnFixingHeaderIconContainer.length===0){columnFixingHeaderIconContainer=$("<div></div>").appendTo($th);columnFixingHeaderIconContainer.addClass("ui-iggrid-indicatorcontainer")}$button=$("#"+buttonId);if($button.length===0){$button=$("<a></a>").attr("href","#").attr("data-fixing-indicator","true").attr("id",buttonId);$divHeaderButtonContainer=columnFixingHeaderIconContainer.find(".ui-iggrid-fixcolumn-headerbuttoncontainer");if($divHeaderButtonContainer.length===0){$divHeaderButtonContainer=$("<div></div>").addClass("ui-iggrid-fixcolumn-headerbuttoncontainer").appendTo(columnFixingHeaderIconContainer)}$button.appendTo($divHeaderButtonContainer);$("<span></span>").appendTo($button);$button.bind({mousedown:function(event){self._preventDefaultEvent(event);$(this).trigger("mouseout");return false},click:function(event){var ind=$(this).closest("th").data("columnIndex");self._preventDefaultEvent(event);if($button.attr("data-fixed")==="true"){self._unfixColumnInternal(ind)}else{self._fixColumnInternal(ind)}}})}this._changeStyleHeaderButton(columnKey,isFixed)},_changeStyleHeaderButton:function(columnKey,isFixed){var css=this.css,attrVal="true",title=this.options.headerFixButtonText,$button=$("#"+this._id("header_cell","fixing",columnKey)),$span=$button.find("span");if(isFixed){$span.removeClass(css.headerButtonIcon);$span.addClass(css.headerButtonUnfixIcon);title=this.options.headerUnfixButtonText}else{attrVal="false";$span.removeClass(css.headerButtonUnfixIcon);$span.addClass(css.headerButtonIcon)}$button.attr("data-fixed",attrVal).attr("title",title)},_gridInternalRendered:function(event,ui){var i,j,cs=this.options.columnSettings,csLength=cs.length,columnKeys=[],hasColumnKey,hasColumnIndex,cols=this.grid.options.columns,colsLength=cols.length;for(i=0;i<csLength;i++){if(cs[i].isFixed!==true){continue}hasColumnKey=cs[i].columnKey!==null&&cs[i].columnKey!==undefined;hasColumnIndex=cs[i].columnIndex!==null&&cs[i].columnIndex!==undefined;if(!hasColumnKey){if(!hasColumnIndex){continue}if(cs[i].columnIndex>=0&&cs[i].columnIndex<colsLength){columnKeys.push(cols[cs[i].columnIndex].key)}}else{columnKeys.push(cs[i].columnKey)}}for(j=0;j<columnKeys.length;j++){this.fixColumn(columnKeys[j])}},_preventDefaultEvent:function(event){event.preventDefault();event.stopPropagation()},destroy:function(){if(this.grid._fixedColumns&&this.grid._fixedColumns.length>0){this.unfixAllColumns()}this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]").each(function(){var th=$(this);th.find("a[data-fixing-indicator=true]").parent().remove()});$.Widget.prototype.destroy.call(this);return this},_injectGrid:function(gridInstance,isRebind){this.grid=gridInstance;if(this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined){this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler)}this._headerRenderedHandler=$.proxy(this._headerRendered,this);this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler);if(this.grid._columns===undefined||this.grid._columns===null){this.grid._columns=this.grid.options.columns.clone()}this._gridRenderedHandler=$.proxy(this._gridInternalRendered,this);this.grid.element.bind("iggridrendered",this._gridRenderedHandler);this.grid._fixedColumns=[]}});$.extend($.ui.igGridColumnFixing,{version:"13.1.20131.2523"})})(jQuery);