(function(){var a=Telerik.Web.UI; a.RadComboBoxEventArgs=function(b){a.RadComboBoxEventArgs.initializeBase(this); this._domEvent=b; }; a.RadComboBoxEventArgs.prototype={get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxEventArgs.registerClass("Telerik.Web.UI.RadComboBoxEventArgs",Sys.EventArgs); a.RadComboBoxCancelEventArgs=function(b){a.RadComboBoxCancelEventArgs.initializeBase(this); this._domEvent=b; }; a.RadComboBoxCancelEventArgs.prototype={get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxCancelEventArgs",Sys.CancelEventArgs); a.RadComboBoxItemEventArgs=function(c,b){a.RadComboBoxItemEventArgs.initializeBase(this); this._item=c; this._domEvent=b; }; a.RadComboBoxItemEventArgs.prototype={get_item:function(){return this._item; },get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxItemEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemEventArgs",Sys.EventArgs); a.RadComboBoxItemCancelEventArgs=function(c,b){Telerik.Web.UI.RadComboBoxItemCancelEventArgs.initializeBase(this); this._item=c; this._domEvent=b; }; a.RadComboBoxItemCancelEventArgs.prototype={get_item:function(){return this._item; },get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxItemCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemCancelEventArgs",Sys.CancelEventArgs); a.RadComboBoxRequestEventArgs=function(c,b){Telerik.Web.UI.RadComboBoxRequestEventArgs.initializeBase(this); this._text=c; this._domEvent=b; }; a.RadComboBoxRequestEventArgs.prototype={get_text:function(){return this._text; },get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxRequestEventArgs.registerClass("Telerik.Web.UI.RadComboBoxRequestEventArgs",Sys.EventArgs); a.RadComboBoxRequestCancelEventArgs=function(d,b,c){a.RadComboBoxRequestCancelEventArgs.initializeBase(this); this._text=d; this._context=b; this._domEvent=c; }; a.RadComboBoxRequestCancelEventArgs.prototype={get_text:function(){return this._text; },get_context:function(){return this._context; },get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxRequestCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxRequestCancelEventArgs",Sys.CancelEventArgs); a.RadComboBoxItemsRequestFailedEventArgs=function(d,b,c){a.RadComboBoxItemsRequestFailedEventArgs.initializeBase(this); this._text=d; this._errorMessage=b; this._domEvent=c; }; a.RadComboBoxItemsRequestFailedEventArgs.prototype={get_text:function(){return this._text; },get_errorMessage:function(){return this._errorMessage; },get_domEvent:function(){return this._domEvent; }}; a.RadComboBoxItemsRequestFailedEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemsRequestFailedEventArgs",a.RadComboBoxCancelEventArgs); a.RadComboBoxItemDataBoundEventArgs=function(b,c){a.RadComboBoxItemDataBoundEventArgs.initializeBase(this,[b]); this._dataItem=c; }; a.RadComboBoxItemDataBoundEventArgs.prototype={get_dataItem:function(){return this._dataItem; }}; a.RadComboBoxItemDataBoundEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemDataBoundEventArgs",a.RadComboBoxItemEventArgs); })(); Type.registerNamespace("Telerik.Web.UI"); (function(){var b=$telerik.$; var a=Telerik.Web.UI; b.registerEnum(a,"Keys",{Shift:16,Escape:27,Up:38,Down:40,Left:37,Right:39,Enter:13,Tab:9,Space:32,PageUp:33,Del:46,F1:112,F12:123,Zero:48,Numpad0:96,Numpad9:105}); b.registerEnum(a,"RadComboBoxFilter",{None:0,Contains:1,StartsWith:2}); a.RadComboBox=function(c){a.RadComboBox.initializeBase(this,[c]); this._callbackText=""; this._filterText=""; this._children=null; this._virtualScroll=false; this._itemData=null; this._selectedItem=null; this._selectedIndex=null; this._setSelectedItem=false; this._enableItemCaching=false; this._openDropDownOnLoad=false; this._allowCustomText=false; this._markFirstMatch=false; this._originalText=this.get_inputDomElement().value; this._cachedText=this._originalText; this._cachedOffsetHeight=""; this._text=""; this._value=""; this._postBackReference=null; this._dropDownElement=null; this._inputDomElement=null; this._imageDomElement=null; this._tableElement=null; this._isTemplated=false; this._requestTimeoutID=0; this._highlightTemplatedItems=false; this._clientState={value:"",text:"",enabled:true,logEntries:[]}; this._uniqueId=null; this._rightToLeft=false; this._isDetached=false; this._overlay=null; this._enableScreenBoundaryDetection=true; this._suppressChange=false; this._lastKeyCode=null; this._loadingDiv=null; this._showMoreResultsBox=false; this._focused=false; this._causesValidation=true; this.get_inputDomElement().setAttribute("autocomplete","off"); this._webServiceSettings=new a.WebServiceSettings({}); this._webServiceLoader=null; this._enabled=true; this._fireEvents=this._enabled; this._slide=null; this._expandAnimation=new a.AnimationSettings({}); this._collapseAnimation=new a.AnimationSettings({}); this._slideDirection=a.jSlideDirection.Down; this._animationEndedDelegate=null; this._animationStartedDelegate=null; this._showDropDownOnTextboxClick=true; this._dropDownWidth=""; this._height=""; this._maxHeight=""; this._childListElementWrapper=null; this._skin=""; this._skipLoadingItems=false; this._ajaxRequest=false; this._pendingAjaxRequestsCount=0; this._emptyMessage=null; this._disposed=false; this._disposeChildElements=true; this._firstOpeningOfDropDown=true; this._isAspNet35=false; this.lodHashTable={}; }; a.RadComboBox._cancelEvent=function(c){c.preventDefault(); return false; }; a.RadComboBox._createChildControls=function(j,k){var e=j.get_itemData(); if(!e){return; }var f=j.get_childListElement(); if(!f){return; }var l=$telerik.getChildrenByTagName(j.get_childListElement(),"li"); var d=l.length; var m=0; if(l.length>0&&l[0].className=="rcbLoading"){d=d-1; m=1; }for(var c=m,g=l.length; c",""":'"'}); }; a.RadComboBox.htmlEncode=function(c){return a.RadComboBox.replace(c,{"&":"&","<":"<",">":">"}); }; a.RadComboBox._getIsInIFrame=function(){return window.top!=window; }; a.RadComboBox.replace=function(c,d){for(var e in d){c=c.replace(new RegExp(e,"g"),d[e]); }return c; }; a.RadComboBox.ComboBoxes=[]; a.RadComboBox.prototype={initialize:function(){a.ControlItemContainer.callBaseMethod(this,"initialize"); this._log.initialize(); this._initializeEventMap(); this._initializeAnimation(); this._clientState.value=this._value; this._clientState.text=this._text; this.updateClientState(); if($telerik.isRightToLeft(this.get_element())){this._initRightToLeft(); }if(this.get_childListElement()){this._onDropDownClickDelegate=Function.createDelegate(this,this._onDropDownClick); $addHandler(this.get_childListElement(),"click",this._onDropDownClickDelegate); this._onDropDownHoverDelegate=Function.createDelegate(this,this._onDropDownHover); $addHandler(this.get_childListElement(),"mouseover",this._onDropDownHoverDelegate); this._cancelDelegate=Function.createDelegate(this,a.RadComboBox._cancelEvent); $addHandler(this.get_childListElement(),"selectstart",this._cancelDelegate); $addHandler(this.get_childListElement(),"dragstart",this._cancelDelegate); this._onDropDownOutDelegate=Function.createDelegate(this,this._onDropDownOut); $addHandler(this.get_childListElement(),"mouseout",this._onDropDownOutDelegate); if($telerik.isIE8&&$telerik.standardsMode){this.get_childListElement().style.position="absolute"; this.get_childListElement().style.width="100%"; }}this._onTableHoverDelegate=Function.createDelegate(this,this._onTableHover); $telerik.addExternalHandler(this.get_tableElement(),"mouseover",this._onTableHoverDelegate); this._onTableOutDelegate=Function.createDelegate(this,this._onTableOut); $telerik.addExternalHandler(this.get_tableElement(),"mouseout",this._onTableOutDelegate); if(!$telerik.isIE8&&!($telerik.isIE&&this._isAspNet35)){this._onPropertyChangeDelegate=Function.createDelegate(this,this._onInputPropertyChange); $addHandler(this.get_inputDomElement(),"propertychange",this._onPropertyChangeDelegate); }if($telerik.isIE){var d=this; b(this.get_inputDomElement()).bind("paste",function(){d._onPaste(); }); }this._onFocusDelegate=Function.createDelegate(this,this._onFocus); $addHandler(this.get_inputDomElement(),"focus",this._onFocusDelegate); this._onDocumentClickDelegate=Function.createDelegate(this,this._onDocumentClick); if($telerik.isIE){document.attachEvent("onmousedown",this._onDocumentClickDelegate); document.attachEvent("oncontextmenu",this._onDocumentClickDelegate); }else{$addHandler(document,"mousedown",this._onDocumentClickDelegate); $addHandler(document,"contextmenu",this._onDocumentClickDelegate); }var c=Function.createDelegate(this,this._dummyHandler); b(this.get_childListElementWrapper()).click(c); if(this._virtualScroll){this._onDropDownScrollDelegate=Function.createDelegate(this,this._onDropDownScroll); $addHandler(this.get_childListElementWrapper(),"scroll",this._onDropDownScrollDelegate); }this._onInputCellClickDelegate=Function.createDelegate(this,this._onInputCellClick); $telerik.addExternalHandler(this.get_inputDomElement().parentNode,"mouseup",this._onInputCellClickDelegate); this._eventMap.addHandlerForClassName("keydown","rcbInput",this._onKeyDown); this._eventMap.addHandlerForClassName("keypress","rcbInput",this._onKeyPress); if(!$telerik.isIE){this._eventMap.addHandlerForClassName("input","rcbInput",this._onInputChange); }if(this.get_imageDomElement()){this._onImageClickDelegate=Function.createDelegate(this,this._onImageClick); $addHandler(this.get_imageDomElement(),"click",this._onImageClickDelegate); }this._onWindowResizeDelegate=Function.createDelegate(this,this._onWindowResize); $addHandler(window,"resize",this._onWindowResizeDelegate); this._onWindowUnloadDelegate=Function.createDelegate(this,this._onWindowUnload); $addHandler(window,"unload",this._onWindowUnloadDelegate); if(this._openDropDownOnLoad){this._onOpenOnLoad=Function.createDelegate(this,this.showDropDown); $addHandler(window,"load",this._onOpenOnLoad); }if(this.get_moreResultsBoxElement()){this._onMoreResultsBoxClickDelegate=Function.createDelegate(this,this._onMoreResultsBoxClick); $addHandler(this.get_moreResultsBoxElement(),"click",this._onMoreResultsBoxClickDelegate); this._onMoreResultsBoxOverDelegate=Function.createDelegate(this,this._onMoreResultsBoxOver); $addHandler(this.get_moreResultsBoxElement(),"mouseover",this._onMoreResultsBoxOverDelegate); this._onMoreResultsBoxOutDelegate=Function.createDelegate(this,this._onMoreResultsBoxOut); $addHandler(this.get_moreResultsBoxElement(),"mouseout",this._onMoreResultsBoxOutDelegate); }if(a.RadComboBox._getNeedsFakeInput()){this._deployFakeInput(); }this.repaint(); this.get_tableElement().style.display=""; if(this._openDropDownOnLoad&&!this.get_dropDownVisible()){this.showDropDown(); }var d=this; Array.add(a.RadComboBox.ComboBoxes,this); if(this._fireEvents){this.raiseEvent("load",null); }this.get_element().value=this._text; },dispose:function(){Array.remove(a.RadComboBox.ComboBoxes,this); if(this._animationEndedDelegate){if(this._slide){this._slide.remove_expandAnimationEnded(this._animationEndedDelegate); this._slide.remove_collapseAnimationEnded(this._animationEndedDelegate); }this._animationEndedDelegate=null; }if(this._animationStartedDelegate){if(this._slide){this._slide.remove_expandAnimationStarted(this._animationStartedDelegate); this._slide.remove_collapseAnimationStarted(this._animationStartedDelegate); }this._animationStartedDelegate=null; }$removeHandler(window,"unload",this._onWindowUnloadDelegate); $removeHandler(window,"resize",this._onWindowResizeDelegate); if(!$telerik.isIE8&&!($telerik.isIE&&this._isAspNet35)){$removeHandler(this.get_inputDomElement(),"propertychange",this._onPropertyChangeDelegate); }b(this.get_inputDomElement()).unbind("paste"); $removeHandler(this.get_inputDomElement(),"focus",this._onFocusDelegate); if($telerik.isIE){document.detachEvent("onmousedown",this._onDocumentClickDelegate); document.detachEvent("oncontextmenu",this._onDocumentClickDelegate); }else{$removeHandler(document,"mousedown",this._onDocumentClickDelegate); $removeHandler(document,"contextmenu",this._onDocumentClickDelegate); }if(this.get_childListElement()){$removeHandler(this.get_childListElement(),"click",this._onDropDownClickDelegate); $removeHandler(this.get_childListElement(),"mouseover",this._onDropDownHoverDelegate); $removeHandler(this.get_childListElement(),"mouseout",this._onDropDownOutDelegate); $removeHandler(this.get_childListElement(),"selectstart",this._cancelDelegate); $removeHandler(this.get_childListElement(),"dragstart",this._cancelDelegate); }if(this.get_tableElement()){$telerik.removeExternalHandler(this.get_tableElement(),"mouseover",this._onTableHoverDelegate); $telerik.removeExternalHandler(this.get_tableElement(),"mouseout",this._onTableOutDelegate); }if(this.get_inputDomElement().parentNode){$telerik.removeExternalHandler(this.get_inputDomElement().parentNode,"mouseup",this._onInputCellClickDelegate); }if(this.get_imageDomElement()){$removeHandler(this.get_imageDomElement(),"click",this._onImageClickDelegate); }if(this._openDropDownOnLoad){$removeHandler(window,"load",this._onOpenOnLoad); }if(this.get_moreResultsBoxElement()){$removeHandler(this.get_moreResultsBoxElement(),"click",this._onMoreResultsBoxClickDelegate); $removeHandler(this.get_moreResultsBoxElement(),"mouseover",this._onMoreResultsBoxOverDelegate); $removeHandler(this.get_moreResultsBoxElement(),"mouseout",this._onMoreResultsBoxOutDelegate); }if(this._virtualScroll&&this._onDropDownScrollDelegate){$removeHandler(this.get_childListElementWrapper(),"scroll",this._onDropDownScrollDelegate); }if(this._slide){this._slide.dispose(); this._slide=null; }this._removeDropDown(); this._disposed=true; a.RadComboBox.callBaseMethod(this,"dispose"); this._tableElement._events=null; this._inputDomElement._events=null; this._imageDomElement._events=null; this._childListElementWrapper._events=null; },_addNewItems:function(d,o){this.set_selectedItem(null); this.set_highlightedItem(null); this._childControlsCreated=true; var h=this.get_items().get_count(); if(this._loadingDiv){if(this._loadingDiv.parentNode){this._loadingDiv.parentNode.removeChild(this._loadingDiv); }this._loadingDiv=null; }if(!this.get_appendItems()){this.clearItems(); }var q=this.get_childListElement(); if(!q){q=this._createChildListElement(); }if(this._virtualScroll){this._setUpScroll(true,q); }var r=null; if(Array.prototype.isPrototypeOf(o)){r=o; }else{r=o.Items; this.set_endOfItems(o.EndOfItems); this.set_showMoreMessage(o.Message); }this._childControlsCreated=false; var m=this.get_webServiceSettings().get_isWcf(); var p=[]; for(var k=0,g=r.length; k=e)&&c){var l=k-e; var f=new a.RadComboBoxItemDataBoundEventArgs(s,r[l]); this.raiseEvent("itemDataBound",f); }}this._setUpDropDownAfterRequest(d,q,h); },_applyEmptyMessage:function(){if(this.get_emptyMessage()&&this.get_text()==""){this._suppressChange=true; this.get_inputDomElement().value=this.get_emptyMessage(); if($telerik.isIE8||($telerik.isIE&&this._isAspNet35)){this._handleInputValueChange(); }this.get_inputDomElement().className+=" rcbEmptyMessage"; this._suppressChange=false; }},_applyZIndex:function(){var d=this.get_element().style.zIndex; var c=this.get_dropDownElement().parentNode.style.zIndex; if(d==0){d=c; }this.get_dropDownElement().parentNode.style.zIndex=d; },_calculateDropDownAutoHeight:function(){var d=this.get_dropDownElement(); var k=$telerik.getLocation(this.get_element()); var c=this._getAnimationContainer(); var f=$telerik.getLocation(c); var m=$telerik.getViewPortSize(); var e=k.y-d.offsetHeight; var i=m.height-f.y; var l=f.y-this.get_element().offsetHeight; var g=i; var h=false; var n=0; if(this._getHeaderElement()){n=n+this._getHeaderElement().offsetHeight; h=true; }if(this._getFooterElement()){n=n+this._getFooterElement().offsetHeight; h=true; }if(this.get_moreResultsBoxElement()){n=n+this.get_moreResultsBoxElement().offsetHeight; h=true; }if(this._enableScreenBoundaryDetection&&ithis._maxHeight){j=this._maxHeight; }if(!(g>=0&&(j+n)>=g)){g=j+n; }if(h&&n-1&&f==e){return true; }return false; },_childRemoved:function(e,c){var d=e.get_element(); if(e==this.get_selectedItem()){this.set_selectedItem(null); this.set_highlightedItem(null); this.set_text(""); }if(c.get_items().get_count()==0&&!this._getHeaderElement()&&!this._getFooterElement()){d=c._childListElement; c._childListElement=null; }if(d){d.innerHTML=""; if(d.parentNode){d.parentNode.removeChild(d); }d=null; }a.RadComboBox.callBaseMethod(this,"_childRemoved",[e,c]); },_childRemoving:function(d){var c=d.get_index(); if(this._itemData){Array.remove(this._itemData,this._itemData[c]); }a.RadComboBox.callBaseMethod(this,"_childRemoving",[d]); },_childrenCleared:function(c){this.set_selectedItem(null); this.set_highlightedItem(null); var d=c.get_childListElement(); var f=c.get_items().get_count(); if(d&&!this._getHeaderElement()&&!this._getFooterElement()){for(var e=0; e").css({border:0,padding:0,margin:0,position:"absolute",zIndex:1,background:"transparent"})[0]; return c; },_deployFakeInput:function(){this.get_element().style.position="relative"; this._fakeInput=this._createFakeInput(); var c=this.get_inputDomElement(); b(this._fakeInput).appendTo(c.parentNode); },_determineScreenBoundaryDetection:function(){var d=this.get_dropDownElement(); var h=a.RadComboBox._getLocation(this.get_element()); var c=this._getAnimationContainer(); var f=$telerik.getLocation(c); var i=$telerik.getViewPortSize(); var g=d.offsetHeight; if(this._height==""&&this.get_childListElement()){if(this._maxHeight==""||this._calculateItemsHeight()=0){this.set_slideDirection(a.jSlideDirection.Up); this._getAnimationContainer().style.height=this.get_dropDownElement().offsetHeight; this._getAnimationContainer().style.top=h.y-this.get_offsetY()-d.offsetHeight+"px"; if(window.netscape&&!window.opera){this._getAnimationContainer().style.top=h.y-this.get_offsetY()-d.offsetHeight+2+"px"; }if(this._height==""&&(this._maxHeight==""||this._calculateItemsHeight()e.height; },_ensureChildControls:function(){if(!this._childControlsCreated){this._createChildControls(); this._childControlsCreated=true; if(!this._setSelectedItem){this._setSelectedItem=true; this._setFirstSelectedItem(); }}},_findItemToSelect:function(){var c=this.findItemByValue(this.get_value()); if(!c){c=this.findItemByText(this.get_text()); }return c; },_findNearestItem:function(c){while(c.nodeType!==9){if(c._item&&a.RadComboBoxItem.isInstanceOfType(c._item)){return c._item; }c=c.parentNode; }return null; },_findNextAvailableIndex:function(c,e,d){var f=this.get_visibleItems(); for(var g=c; g=0; c--){if(e[c].get_enabled()&&!e[c].get_isSeparator()){return c; }}return -1; },_getAnimatedElement:function(){if(!this._animatedElement){this._animatedElement=this.get_dropDownElement(); }return this._animatedElement; },_getAnimationContainer:function(){if(!this._animationContainer){if(this.get_dropDownElement()){this._animationContainer=this.get_dropDownElement().parentNode; }}return this._animationContainer; },_getFooterElement:function(){if(this.get_dropDownElement()){return $telerik.getChildByClassName(this.get_dropDownElement(),"rcbFooter",0); }return null; },_getHeaderElement:function(){if(this.get_dropDownElement()){return $telerik.getChildByClassName(this.get_dropDownElement(),"rcbHeader",0); }return null; },_getRelatedTarget:function(g){var f=g.toElement||g.relatedTarget||g.fromElement; if(!f){return null; }try{var d=f.tagName; }catch(c){f=null; }return f; },_getLastSeparator:function(c){if(!this.get_autoCompleteSeparator()){return null; }var d=this._getLastSeparatorIndex(c); return c.charAt(d); },_getLastSeparatorIndex:function(h){var e=-1; if(!this.get_autoCompleteSeparator()){return e; }for(var d=0,g=this.get_autoCompleteSeparator().length; de&&!this._checkIsThisPartOfWord(f,c)){e=f; }}return e; },_handleInputValueChange:function(){var c=this.get_text(); if(this._cachedText!=c){this._cachedText=c; this._onInputChange(); }},_hideDropDown:function(c){if(!this.get_dropDownVisible()){return; }if(this.raise_dropDownClosing(c)==true){return; }this._collapsing=true; this.get_dropDownElement().style.display="none"; if(!this._getAnimationContainer()){return; }if(window.netscape&&!window.opera){this.get_childListElementWrapper().scrollTop=0; }this._slide.collapse(); this.set_dropDownVisible(false); if(this.get_filter()!=a.RadComboBoxFilter.None){this._removeEmTagsFromAllItems(); }this.raise_dropDownClosed(c); },_highlightFirstMatch:function(){var c=this._findItemToSelect(); if(c&&c.get_enabled()&&!c.get_isSeparator()){c.highlight(); }},_initializeAnimation:function(){var c=this._getAnimatedElement(); if(c){this._slide=new a.jSlide(c,this.get_expandAnimation(),this.get_collapseAnimation()); this._slide.initialize(); this._slide.set_direction(this.get_slideDirection()); }this._animationEndedDelegate=Function.createDelegate(this,this._onAnimationEnded); this._slide.add_expandAnimationEnded(this._animationEndedDelegate); this._slide.add_collapseAnimationEnded(this._animationEndedDelegate); this._animationStartedDelegate=Function.createDelegate(this,this._onAnimationStarted); this._slide.add_expandAnimationStarted(this._animationStartedDelegate); this._slide.add_collapseAnimationStarted(this._animationStartedDelegate); },_initializeWebServiceLoader:function(){this._webServiceLoader=new a.WebServiceLoader(this.get_webServiceSettings()); this._webServiceLoader.add_loadingSuccess(Function.createDelegate(this,this._onWebServiceResponse)); this._webServiceLoader.add_loadingError(Function.createDelegate(this,this._onWebServiceError)); },_initRightToLeft:function(){this._rightToLeft=true; if(this._skin){this.get_element().className=String.format("{0} RadComboBox_rtl RadComboBox_{1}_rtl",this.get_element().className,this._skin); this.get_dropDownElement().className=String.format("{0} RadComboBoxDropDown_rtl RadComboBoxDropDown_{1}_rtl",this.get_dropDownElement().className,this._skin); }if(this.get_imageDomElement()){if(Sys.UI.DomElement.containsCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellRight")){this._replaceCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellRight","rcbArrowCellLeft"); this.get_inputDomElement().parentNode.className="rcbInputCell rcbInputCellRight"; }else{this._replaceCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellLeft","rcbArrowCellRight"); this.get_inputDomElement().parentNode.className="rcbInputCell rcbInputCellLeft"; }}},_logInserted:function(c){if(!c.get_parent()._childControlsCreated||!this._enableClientStatePersistence){return; }this._log.logInsert(c); },_onAnimationEnded:function(d,f){this._collapsing=false; if(window.netscape&&!window.opera){this.get_childListElementWrapper().style.overflow="auto"; }if(this.get_dropDownVisible()){var c=this.get_highlightedItem(); if(c){c.scrollOnTop(); }}},_onAnimationStarted:function(d,c){if(window.netscape&&!window.opera){this.get_childListElementWrapper().style.overflow="hidden"; }},_onCallbackResponse:function(l){if(this._disposed){return; }this._pendingAjaxRequestsCount--; this.set_selectedItem(null); this.set_highlightedItem(null); var j=this._children.get_count(); var d=this.get_text(); var h=0; var g=l.split("_$$_")[4]; if((this._pendingAjaxRequestsCount==0)&&(g!=this._callbackText)){this.requestItems(this._callbackText,this.get_appendItems()); return; }if(this.get_appendItems()){h=this.get_items().get_count(); }if(this.get_enableItemCaching()&&this.lodHashTable[g+"$"+h]==null){this.lodHashTable[g+"$"+h]=l; }var o=l.split("_$$_"); var m; if(o[0]=="[]"){m=null; }else{m=eval(o[0]); }if(o[3]=="True"){this.set_endOfItems(true); }else{this.set_endOfItems(false); }if(this.get_appendItems()&&this._itemData&&m){Array.addRange(this._itemData,m); }else{this._itemData=m; }if(this._loadingDiv){if(this._loadingDiv.parentNode){this._loadingDiv.parentNode.removeChild(this._loadingDiv); }this._loadingDiv=null; }var n=this.get_childListElement(); if(!n){n=this._createChildListElement(); }this._childControlsCreated=true; var k=$telerik.getFirstChildByTagName(n,"div",0); if(k){k.parentNode.removeChild(k); }if(this.get_appendItems()){var q=document.createElement("ul"); q.innerHTML=o[1]; var f=$telerik.getChildrenByTagName(q,"li"); var c=f.length; for(var e=0; e0){g=this.get_items().getItem(0).get_element().offsetHeight; i=this.get_items().getItem(c-1).get_element().offsetTop; }var d=$telerik.getFirstChildByTagName(this.get_childListElement(),"div",0); if(d){var f=d.offsetHeight; if(this.get_childListElementWrapper().scrollTop+f>=this.get_childListElement().offsetHeight-f){this.requestItems(this._filterText,true); }}},_onErrorReceived:function(c,e){if(this._requestTimeoutID>0){window.clearTimeout(this._requestTimeoutID); this._requestTimeoutID=0; }var d=this._extractErrorMessage(c); if(this.raise_itemsRequestFailed(e,d,null)==true){return; }alert(d); },_onFocus:function(c){if(this._focused){return; }if(this.get_emptyMessage()&&this.get_emptyMessage()==this.get_text()){this._suppressChange=true; this.get_inputDomElement().value=this._text; if($telerik.isIE8||($telerik.isIE&&this._isAspNet35)){this._handleInputValueChange(); }(function(e){setTimeout(function(){e.get_inputDomElement().className="rcbInput"; },0); })(this); this._suppressChange=false; }var d=this.get_tableElement(); if(d!=null){(function(){setTimeout(function(){d.className="rcbFocused"; },0); })(); }if(!c&&typeof(event)!="undefined"){c=event; }this._focused=true; this.raise_onClientFocus(c); return true; },_onImageClick:function(c){if(this.get_dropDownVisible()){this.get_inputDomElement().focus(); }if(this._enabled){this._toggleDropDown(c); }},_onInputCellClick:function(c){if(this._enabled){if(this.get_text()!==this.get_emptyMessage()){this.selectText(0,this.get_text().length); }if(!this.get_dropDownVisible()&&this._showDropDownOnTextboxClick){this._showDropDown(c); }return true; }},_onInputChange:function(){var c=this.get_text(); if(!$telerik.isIE||this._updateFilterText){this._filterText=c; }if($telerik.isIE){this._updateFilterText=false; }if(!this.get_emptyMessage()||c!=this.get_emptyMessage()){this._ensureChildControls(); this._text=c; }this.set_value(""); if(this.get_inputDomElement().className.indexOf("rcbEmptyMessage")>-1){this.get_inputDomElement().className="rcbInput"; }this.get_element().value=this._text; this.updateClientState(); if(!this._suppressChange){if(this.get_enableLoadOnDemand()){var d=this; if(this._requestTimeoutID>0){window.clearTimeout(this._requestTimeoutID); this._requestTimeoutID=0; }if(!this.get_dropDownVisible()){this._skipLoadingItems=true; this.showDropDown(); }this._requestTimeoutID=window.setTimeout(function(){if(d._disposed){return; }d.requestItems(d._filterText,false); },d.get_itemRequestTimeout()); return; }if(this.get_filter()==a.RadComboBoxFilter.None){if(this._shouldHighlight()){this.highlightMatches(); }}else{this.highlightAllMatches(this.get_text()); }}},_onInputPropertyChange:function(){if(!event.propertyName){event=event.rawEvent; }if(event.propertyName=="value"){this._handleInputValueChange(); }},_onKeyDown:function(h){if($telerik.isIE){this._updateFilterText=true; }if($telerik.isIE8||($telerik.isIE&&this._isAspNet35)){var c=this; setTimeout(function(){c._handleInputValueChange(); },0); }if(!this._fireEvents||this._ajaxRequest){return; }if(!h){h=event; }this.raise_onClientKeyPressing(h); var g=h.keyCode||h.which; this._lastKeyCode=g; if(g==a.Keys.Escape&&this.get_dropDownVisible()){if(this.get_dropDownVisible()){this._hideDropDown(h); }return; }else{if(g===a.Keys.Enter){if(this.get_dropDownVisible()){this._hideDropDown(h); }this._performSelect(this.get_highlightedItem(),h); if(this.get_markFirstMatch()){var f=this.get_text().length; this.selectText(f,f); }h.returnValue=false; if(h.preventDefault){h.preventDefault(); }return; }else{if(g===a.Keys.Down){h.returnValue=false; if(h.altKey){this._toggleDropDown(h); return; }this.highlightNextItem(null); if(h.preventDefault){h.preventDefault(); }return; }else{if(g===a.Keys.Up){h.returnValue=false; if(h.altKey){this._toggleDropDown(h); return; }this.highlightPreviousItem(); if(h.preventDefault){h.preventDefault(); }return; }else{if(g===a.Keys.Tab){if(this.get_dropDownVisible()){this._hideDropDown(h); }this._raiseClientBlur(h); this._selectItemOnBlur(h); this._focused=false; return; }}}}}if(g==a.Keys.Left||g==a.Keys.Right){return; }if(g>=a.Keys.Numpad0&&g<=a.Keys.Numpad9){g-=(a.Keys.Numpad0-a.Keys.Zero); }var d=String.fromCharCode(g); if(d&&(!h.altKey)&&!(this.get_enableLoadOnDemand()||!this.get_readOnly())){this.highlightNextItem(d); return; }},_onKeyPress:function(d){if(!this._fireEvents){return; }var f=d.charCode||d.keyCode; if(this._ajaxRequest){if(f===a.Keys.Enter){d.returnValue=false; if(d.preventDefault){d.preventDefault(); }}return; }if((this.get_markFirstMatch())&&(this.get_autoCompleteSeparator())&&(this.get_autoCompleteSeparator().search(String.fromCharCode(f))!=-1)){this._performSelect(this.get_highlightedItem(),d); if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); }var c=this.get_text().length; this.selectText(c,c); }},_onMoreResultsBoxClick:function(c){this.requestItems(this._filterText,true); },_onMoreResultsBoxOut:function(c){this.get_moreResultsBoxElement().style.cursor="default"; },_onMoreResultsBoxOver:function(c){this.get_moreResultsBoxElement().style.cursor="pointer"; },_onPaste:function(){this._updateFilterText=true; if($telerik.isIE8||($telerik.isIE&&this._isAspNet35)){var c=this; setTimeout(function(){c._handleInputValueChange(); },0); }},_onTableHover:function(c){if(!this._enabled){return; }var d=this.get_tableElement(); if(d!=null&&d.className!="rcbFocused"){d.className="rcbHovered"; }},_onTableOut:function(g){if(!this._enabled){return; }if(!g){g=event; }var d=this.get_tableElement(); var c=g.target||g.srcElement; var f=this._getRelatedTarget(g); if(!f){return; }while(f&&f.nodeType!==9){if(f.parentNode&&f.parentNode==d){return; }f=f.parentNode; }if(d!=null&&d.className=="rcbHovered"){d.className=""; }},_onWebServiceError:function(c,e){var d=e.get_message(); var f=e.get_context(); this._onErrorReceived(d,f); },_onWebServiceResponse:function(c,f){this._pendingAjaxRequestsCount--; var e=f.get_data(); var g=f.get_context(); var d=0; if(this.get_appendItems()){d=this.get_items().get_count(); }if((this._pendingAjaxRequestsCount==0)&&(g!=this._callbackText)){this.requestItems(this._callbackText,this.get_appendItems()); return; }if(this.get_enableItemCaching()){this.lodHashTable[g+"$"+d]=e; }this._addNewItems(g,e); },_onWindowResize:function(){if(this.get_dropDownVisible()){this._positionDropDown(); }},_onWindowUnload:function(){this._disposeChildElements=false; },_performSelect:function(d,f){if(d&&d!=this.get_selectedItem()&&!this.get_enableLoadOnDemand()){d._select(f); return; }if(d&&d==this.get_selectedItem()&&this.getLastWord(this.get_text())!=d.get_text()&&!this.get_readOnly()){this.set_text(d.get_text()); return; }if(d&&d==this.get_selectedItem()){return; }if(d&&this.get_originalText()!=d.get_text()){d._select(f); return; }if(d&&(!this.get_selectedItem()||this.get_selectedItem().get_value()!=d.get_value())){d._select(f); return; }if(this.get_originalText()!=this.get_text()){if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); }if(this.raise_textChange(this,f)==true){return; }var c={Command:"TextChanged"}; this.postback(c); }},_positionDropDown:function(){if(this._skipDropDownPositioning){return; }this._detachDropDown(); var g=this.get_element(); var k=this._getAnimationContainer(); k.style.position="absolute"; var f=this.get_tableElement(); var i=b(f).offset(); var d=this.get_dropDownElement(); var e=this.get_tableElement().offsetWidth; if(this._dropDownWidth){e=this._dropDownWidth; }var j=this.get_childListElementWrapper(); var h=i.top+this.get_offsetY()+f.offsetHeight; k.style.top=h+"px"; k.style.left=i.left+this.get_offsetX()+"px"; d.style.display="block"; d.style.width=e+"px"; if(!this._dropDownWidth){var c=d.offsetWidth-e; if(c>0&&c0)&&!this.get_enableLoadOnDemand()&&!this.get_allowCustomText()){if(this.get_markFirstMatch()){if(this.get_text()==""){this.set_text(this._originalText); }this.highlightMatches(); this.selectText(0,0); d=this.get_highlightedItem(); }}if(this.get_filter()!=a.RadComboBoxFilter.None){this.setAllItemsVisible(true); }if(!d){var c=this.get_selectedItem(); if(c){c.set_selected(false); this.set_selectedItem(null); this.set_selectedIndex(null); }}this._performSelect(d,f); },_setFirstSelectedItem:function(){var c=this._findItemToSelect(); if(c&&!c.get_isSeparator()){this.set_selectedItem(c); }},_setReadOnlyCssClass:function(){var c=this.get_tableElement().getElementsByTagName("tr")[0]; if(this.get_readOnly()){Sys.UI.DomElement.addCssClass(c,"rcbReadOnly"); }else{Sys.UI.DomElement.removeCssClass(c,"rcbReadOnly"); }},_setUpDropDownAfterRequest:function(e,c,d){if(this._virtualScroll){this._setUpScroll(this.get_endOfItems(),c); }if(this.get_appendItems()&&(this.get_items().getItem(d+1)!=null)){this.get_items().getItem(d+1).scrollIntoView(); }if(this._showMoreResultsBox&&this.get_moreResultsBoxMessageElement()){this.get_moreResultsBoxMessageElement().innerHTML=this.get_showMoreMessage(); }this.raise_itemsRequested(e,null); if(this.get_filter()==a.RadComboBoxFilter.None){this.highlightMatches(); }else{this.highlightAllMatches(this.get_text()); }if(this.get_dropDownVisible()){this._skipDropDownPositioning=true; if(this._slide){this._slide.updateSize(); }this._skipDropDownPositioning=null; this._positionDropDown(); }this._ajaxRequest=false; },_setUpScroll:function(d,f){var e=22; var g=this.get_items().get_count(); if(g>0){e=this.get_items().getItem(0).get_element().offsetHeight; }if(d){var c=$telerik.getFirstChildByTagName(f,"div",0); if(c){c.parentNode.removeChild(c); }}else{var c=document.createElement("div"); if(this._height==""&&this._maxHeight!=""){c.style.height=this._maxHeight+"px"; }else{c.style.height=this._height+"px"; }f.appendChild(c); }},_shouldHighlight:function(){if(this._lastKeyCode=a.Keys.PageUp)&&(this._lastKeyCode<=a.Keys.Del)){return false; }if((this._lastKeyCode>=a.Keys.F1)&&(this._lastKeyCode<=a.Keys.F12)){return false; }return true; },_showDropDown:function(g){if(this._firstOpeningOfDropDown){this._applyZIndex(); this._firstOpeningOfDropDown=false; }this._highlightFirstMatch(); if(this.raise_dropDownOpening(g)==true){return; }var f=this._getAnimationContainer(); if(!f){return; }var c=this.get_text(); if(this.get_emptyMessage()==this.get_text()){c=""; }if(this.get_enableLoadOnDemand()&&this.get_items().get_count()==0&&!this._skipLoadingItems){this.requestItems(c,false); }this._skipLoadingItems=false; f.style.visibility="hidden"; this.get_dropDownElement().style.visibility="hidden"; if(window.netscape&&!window.opera){this.get_childListElementWrapper().style.overflow="hidden"; }this._slide.show(); this._resetAnimatedElementPosition(); this._slide.set_direction(this.get_slideDirection()); try{this.get_inputDomElement().focus(); }catch(g){}this._onFocus(g); this.set_dropDownVisible(true); this._positionDropDown(); var d=this.get_dropDownElement(); d.style.top=-d.offsetHeight+"px"; this._skipDropDownPositioning=true; this._slide.updateSize(); this._skipDropDownPositioning=null; f.style.visibility="visible"; this._slide.expand(); this.raise_dropDownOpened(g); },_toggleDropDown:function(c){if(this.get_dropDownVisible()){this._hideDropDown(c); }else{this._showDropDown(c); }},add_onClientKeyPressing:function(c){this.get_events().addHandler("keyPressing",c); },attachDropDown:function(){var c=this.get_dropDownElement().parentNode; c.parentNode.removeChild(c); this.get_tableElement().parentNode.appendChild(c); },clearCache:function(){this.lodHashTable={}; },clearItems:function(){this.get_items().clear(); this._itemData=null; },clearSelection:function(){this.set_text(""); this.set_value(""); this.set_selectedItem(null); this.set_highlightedItem(null); this._applyEmptyMessage(); },disable:function(){var e=this.get_tableElement(); if(e!=null){e.className="rcbDisabled"; }this.set_enabled(false); this.get_inputDomElement().disabled="disabled"; this.disableEvents(); var d=this.get_items().get_count(); for(var c=0; c0){var d=this.get_visibleItems(); var f=d.length; for(var c=0; c=0){h[d].highlight(); h[d].scrollIntoView(); var f=this._getLastSeparatorIndex(this.get_text()); var j=this.get_text().substring(0,f+1)+h[d].get_text(); if(this.get_changeText()){this.set_text(j); this.set_value(h[d].get_value()); }}},postback:function(c){if(!this._postBackReference){return; }var d=this._postBackReference.replace("arguments",Sys.Serialization.JavaScriptSerializer.serialize(c)); eval(d); },raise_dropDownClosed:function(c){var d=new a.RadComboBoxEventArgs(c); this.raiseEvent("dropDownClosed",d); },raise_dropDownClosing:function(c){var d=new a.RadComboBoxCancelEventArgs(c); this.raiseEvent("dropDownClosing",d); return d.get_cancel(); },raise_dropDownOpened:function(c){var d=new a.RadComboBoxEventArgs(c); this.raiseEvent("dropDownOpened",d); },raise_dropDownOpening:function(c){var d=new a.RadComboBoxCancelEventArgs(c); this.raiseEvent("dropDownOpening",d); return d.get_cancel(); },raise_itemsRequested:function(f,d){var c=new a.RadComboBoxRequestEventArgs(f,d); this.raiseEvent("itemsRequested",c); },raise_itemsRequestFailed:function(g,c,f){var d=new a.RadComboBoxItemsRequestFailedEventArgs(g,c,f); this.raiseEvent("itemsRequestFailed",d); return d.get_cancel(); },raise_keyPressing:function(c){this.raiseEvent("keyPressing",c); },raise_onClientBlur:function(c){var d=new a.RadComboBoxEventArgs(c); this.raiseEvent("onClientBlur",d); },raise_onClientFocus:function(c){var d=new a.RadComboBoxEventArgs(c); this.raiseEvent("onClientFocus",d); },raise_onClientKeyPressing:function(c){var d=new a.RadComboBoxEventArgs(c); this.raiseEvent("keyPressing",d); },raise_selectedIndexChanged:function(c,f){var d=new a.RadComboBoxItemEventArgs(c,f); this.raiseEvent("selectedIndexChanged",d); },raise_selectedIndexChanging:function(c,f){var d=new a.RadComboBoxItemCancelEventArgs(c,f); this.raiseEvent("selectedIndexChanging",d); return d.get_cancel(); },raise_textChange:function(d,c){var d=new a.RadComboBoxCancelEventArgs(c); this.raiseEvent("textChange",d); return d.get_cancel(); },remove_onClientKeyPressing:function(c){this.get_events().removeHandler("keyPressing",c); },repaint:function(){if(this._fakeInput){this._repaintFakeInput(); }var d=b("label",this.get_element())[0]; if(d){var e=this.get_element().offsetWidth; var c=d.offsetWidth; this.get_tableElement().style.width=(e-c)+"px"; }},requestItems:function(c,f){if(this._disposed){return; }if(f){if((this._pendingAjaxRequestsCount>0)||this.get_endOfItems()){return; }}else{this._filterText=c; }this._ensureChildControls(); this._ajaxRequest=true; var e={}; this.set_appendItems(f); e.Text=c; e.NumberOfItems=0; if(this.get_appendItems()){e.NumberOfItems=this.get_items().get_count(); }var d=new a.RadComboBoxRequestCancelEventArgs(c,e); this.raiseEvent("itemsRequesting",d); if(d.get_cancel()){this._ajaxRequest=false; return; }if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); }if(!this._loadingDiv){this._loadingDiv=document.createElement("li"); this._loadingDiv.className="rcbLoading"; this._loadingDiv.id=this.get_id()+"_LoadingDiv"; this._loadingDiv.innerHTML=this.get_loadingMessage(); if(!this.get_childListElement()){this._createChildListElement(); }this.get_childListElement().insertBefore(this._loadingDiv,this.get_childListElement().firstChild); }c=encodeURIComponent(c); this._callbackText=c; this._pendingAjaxRequestsCount++; if(this.get_webServiceSettings().get_method()){this._doLoadOnDemandFromWebService(c,e); }else{this._doLoadOnDemand(c,e); }},saveClientState:function(){var c=this._log._logEntries; var d={logEntries:c,value:this._value,text:this._text,enabled:this._enabled}; return Sys.Serialization.JavaScriptSerializer.serialize(d); },selectText:function(c,d){if(!this.get_enableTextSelection()){return; }if((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){return; }if(this.get_inputDomElement().createTextRange){var e=this.get_inputDomElement().createTextRange(); if(c==0&&d==0){e.collapse(true); return; }e.moveStart("character",c); e.moveEnd("character",d); e.select(); }else{this.get_inputDomElement().setSelectionRange(c,c+d); }},set_allowCustomText:function(c){this._allowCustomText=c; this._setReadOnlyCssClass(); },set_causesValidation:function(c){this._causesValidation=c; },set_collapseAnimation:function(d){var c=Sys.Serialization.JavaScriptSerializer.deserialize(d); this._collapseAnimation=new a.AnimationSettings(c); },set_emptyMessage:function(c){if(this._emptyMessage!==c){this._emptyMessage=c; }this._applyEmptyMessage(); },set_enabled:function(c){this._enabled=c; this.updateClientState(); },set_enableItemCaching:function(c){this._enableItemCaching=c; },set_expandAnimation:function(d){var c=Sys.Serialization.JavaScriptSerializer.deserialize(d); this._expandAnimation=new a.AnimationSettings(c); },set_highlightTemplatedItems:function(c){this._highlightTemplatedItems=c; },set_isTemplated:function(c){this._isTemplated=c; },set_itemData:function(c){this._itemData=c; },set_items:function(c){this._children=c; },set_markFirstMatch:function(c){this._markFirstMatch=c; this._setReadOnlyCssClass(); },set_originalText:function(c){this._originalText=c; },set_selectedIndex:function(c){this._selectedIndex=c; },get_selectedItem:function(){if(!this._setSelectedItem){this._setSelectedItem=true; this._setFirstSelectedItem(); }return this._selectedItem; },set_selectedItem:function(c){this._selectedItem=c; },set_slideDirection:function(c){this._slideDirection=c; this._slide.set_direction(c); },set_text:function(c){c=a.RadComboBox.htmlDecode(c); this.get_element().value=c; this._suppressChange=true; var f=this.get_inputDomElement(); f.value=c; if($telerik.isIE8||($telerik.isIE&&this._isAspNet35)){this._handleInputValueChange(); }f.className="rcbInput"; this.set_value(""); if(f.fireEvent&&document.createEventObject){var d=document.createEventObject(); f.fireEvent("onchange",d); }else{if(f.dispatchEvent){var e=true; var d=document.createEvent("HTMLEvents"); d.initEvent("change",e,true); f.dispatchEvent(d); }}this._suppressChange=false; this._ensureChildControls(); this._text=c; this.updateClientState(); },set_value:function(c){this._value=c; this.updateClientState(); },set_webServiceSettings:function(d){var c=Sys.Serialization.JavaScriptSerializer.deserialize(d); this._webServiceSettings=new a.WebServiceSettings(c); },setAllItemsVisible:function(c){var c=c; this.get_items().forEach(function(d){d.set_visible(c); }); },showDropDown:function(){if(this._enabled){this._showDropDown(null); }},toggleDropDown:function(){if(this._enabled){this._toggleDropDown(null); }}}; b.registerControlProperties(a.RadComboBox,{autoCompleteSeparator:null,appendItems:false,endOfItems:false,enableLoadOnDemand:false,closeDropDownOnBlur:true,changeText:true,enableTextSelection:true,dropDownVisible:false,highlightedItem:null,filter:0,clientDataString:null,isCaseSensitive:false,itemRequestTimeout:300,showMoreMessage:"",errorMessage:"CallBack Error!",loadingMessage:"Loading...",offsetX:0,offsetY:0}); b.registerControlEvents(a.RadComboBox,["load","keyPressing","textChange","itemsRequestFailed","selectedIndexChanging","selectedIndexChanged","itemsRequesting","itemsRequested","itemDataBound","dropDownOpening","dropDownOpened","dropDownClosing","dropDownClosed","onClientFocus","onClientBlur"]); a.RadComboBox._preInitialize=function(e){var d=$get(e); var c="inline-block"; if($telerik.isIE6||$telerik.isIE7){c="inline"; }else{if($telerik.isFirefox2){c="-moz-inline-stack"; }}d.style.display=c; }; a.RadComboBox.registerClass("Telerik.Web.UI.RadComboBox",a.ControlItemContainer); })(); Type.registerNamespace("Telerik.Web.UI"); (function(){var b=$telerik.$; var a=Telerik.Web.UI; a.RadComboBoxItem=function(){a.RadComboBoxItem.initializeBase(this); }; a.RadComboBoxItem.prototype={_shouldInitializeChild:function(c){return false; },get_text:function(){if(this._text!==null){return this._removeEmTags(this._text); }if((this._text=this._properties.getValue("text",null))!=null){return this._removeEmTags(this._text); }if(!this.get_element()){return""; }var c=this.get_textElement(); if(!c){return""; }if(typeof(c.innerText)!="undefined"){this._text=c.innerText; }else{this._text=c.textContent; }if($telerik.isSafari2){this._text=c.innerHTML; }return this._removeEmTags(this._text); },get_baseText:function(){return a.RadComboBoxItem.callBaseMethod(this,"get_text"); },_removeEmTags:function(e){var c=e.indexOf(""); var d=e.indexOf(""); if(c>=0&&d>c){e=String.format("{0}{1}{2}",e.substr(0,c),e.substr(c+4,d-c-4),e.substr(d+5)); }return e; },set_visible:function(d){var c=this.get_visible()!=d; if(!c){return; }a.RadComboBoxItem.callBaseMethod(this,"set_visible",[d]); if(d){this.get_element().style.display=""; }else{this.get_element().style.display="none"; }},_markText:function(c){var g=this.get_comboBox(); var h=this.get_baseText(); var o=this.get_text(); var l=this.get_imageElement(); if(!g.get_isTemplated()){this.set_text(o); this.get_element().innerHTML=a.RadComboBox.htmlEncode(o); }h=o; var k=h.toLowerCase().indexOf(c.toLowerCase()); var e=g.get_filter()==a.RadComboBoxFilter.Contains&&(k>=0); var d=g.get_filter()==a.RadComboBoxFilter.StartsWith&&(k==0); if(e||d){if(c!=""&&!g.get_isTemplated()){var f="{0}{1}{2}"; var n=h.substr(0,k); var m=h.substring(k,k+c.length); var i=h.substr(k+c.length); var j=String.format(f,n,m,i); this.set_text(j); this.get_element().innerHTML=String.format(f,a.RadComboBox.htmlEncode(n),a.RadComboBox.htmlEncode(m),a.RadComboBox.htmlEncode(i)); }this.set_visible(true); }else{this.set_visible(false); }b(this.get_element()).prepend(l); },_render:function(c){c[c.length]="
  • "; }else{c[c.length]="rcbItem'>"; }}else{c[c.length]="rcbDisabled'>"; }if(this.get_imageUrl()){this._renderImage(c); }c[c.length]=this.get_text(); c[c.length]="
  • "; },_renderImage:function(c){c[c.length]="g+d){f.scrollTop=c+h-d; if(f.clientWidth