1Type.registerNamespace("Telerik.Web.UI"); 2(function(){var a=Telerik.Web.UI; 3a.RadComboBoxItem=function(){a.RadComboBoxItem.initializeBase(this); 4}; 5a.RadComboBoxItem._regExEscape=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"); 6}; 7})(); 8(function(){var a=$telerik.$,c=Telerik.Web.UI,b=c.RadComboBoxItem; 9c.RadComboBoxItem.prototype={_shouldInitializeChild:function(d){return false; 10},get_text:function(){var e=this.get_comboBox(); 11var d=e?e._checkBoxes:false; 12if(this._text!==null){return this._removeEmTags(this._text); 13}if((this._text=this._properties.getValue("text",null))!==null){return this._removeEmTags(this._text); 14}var f=this.get_textElement(); 15if(!f){return""; 16}if(typeof(f.innerText)!="undefined"){if(d&&Telerik.Web.Browser.chrome){this._text=a(f).find("label")[0].innerText; 17}else{this._text=f.innerText; 18}}else{this._text=f.textContent; 19}return this._removeEmTags(this._text); 20},get_baseText:function(){return c.RadComboBoxItem.callBaseMethod(this,"get_text"); 21},set_text:function(k){var g=this.get_element(),d=a(g),i=this.get_imageElement(),f=this.get_comboBox(),h=f?f._checkBoxes:false; 22if(g&&!d.hasClass("rcbTemplate")){if(!i&&!h){g.innerHTML=k; 23}else{var e=d,j; 24if(h){e=d.find("label"); 25}j=e.children(":last").get(0); 26if(j&&j.nextSibling){j.nextSibling.nodeValue=k; 27}else{e.append(k); 28}}}this._text=k; 29this._properties.setValue("text",k,true); 30if(f){if(this.get_checked()){f._updateComboBoxText(); 31}f._resizeDropDown(); 32}},_removeEmTags:function(f){var d=f.indexOf("<em>"); 33var e=f.indexOf("</em>"); 34if(d>=0&&e>d){f=String.format("{0}{1}{2}",f.substr(0,d),f.substr(d+4,e-d-4),f.substr(e+5)); 35}return f; 36},set_visible:function(e){var f=this.get_visible()!=e,d=this.get_element(); 37if(!f){return; 38}c.RadComboBoxItem.callBaseMethod(this,"set_visible",[e]); 39if(e){d.style.display=""; 40}else{d.style.display="none"; 41}},clearEmTags:function(){var d=this; 42a(this.get_element()).find("em").contents().unwrap().parent().each(function(){if($telerik.isIE||Telerik.Web.Browser.edge){d._normalize(this); 43}else{this.normalize(); 44}}); 45},_normalize:function(f){var d=f.firstChild,e; 46while(d){if(d.nodeType==3){while((e=d.nextSibling)&&e.nodeType==3){d.appendData(e.data); 47f.removeChild(e); 48}}else{this._normalize(d); 49}d=d.nextSibling; 50}},_highlight:function(g,d){var e=this,h=function(i){return b.STRING_EM_START+i+b.STRING_EM_END; 51},f=false; 52a(d).contents().each(function(){if(this.nodeType!=1){var j=a(this).text(); 53if(g.test(j)){var i=j.replace(g,h); 54i=c.RadComboBox.htmlEncode(i); 55i=i.replace(b.REGEX_EM_START_HTML_ENCODED,b.STRING_EM_START).replace(b.REGEX_EM_END_HTML_ENCODED,b.STRING_EM_END); 56if(!a(this).siblings()){parent.innerHTML=i; 57}else{a(this).replaceWith(i); 58}f=true; 59}}else{if(e._highlight(g,this)){f=true; 60}}}); 61return f; 62},highlightText:function(e,h){this.clearEmTags(); 63if(h===""){return true; 64}var d=b._regExEscape(h),g=null; 65if(e==c.RadComboBoxFilter.StartsWith){g=new RegExp("^\\s*"+d,"im"); 66}else{if(e==c.RadComboBoxFilter.Contains){g=new RegExp(d,"gim"); 67}}var f=this._highlight(g,this.get_element()); 68return f; 69},_createDomElement:function(){var e=this.get_comboBox().get_simpleRendering(),f=e?document.createElement("div"):document.createElement("ul"),d=[]; 70if(e){d[d.length]="<select>"; 71}this._render(d); 72if(e){d[d.length]="</select>"; 73}f.innerHTML=d.join(""); 74if(e){return f.firstChild.firstChild; 75}else{return f.firstChild; 76}},_render:function(d){if(this.get_comboBox().get_simpleRendering()){this._renderOptionElement(d); 77}else{this._renderLiElement(d); 78}},_renderOptionElement:function(d){d[d.length]="<option"; 79if(this.get_value()){d[d.length]=" value='"+this.get_value()+"'"; 80}if(!this.get_enabled()){d[d.length]=" disabled='disabled'"; 81}if(this.get_selected()){d[d.length]=" selected='selected'"; 82}d[d.length]=">"; 83d[d.length]=this.get_text(); 84d[d.length]="</option>"; 85},_renderLiElement:function(e){var d=this._renderedClientTemplate; 86e[e.length]="<li class='"; 87if(this.get_enabled()){e[e.length]="rcbItem"; 88if(this.get_isSeparator()){e[e.length]=" rcbSeparator"; 89}}else{e[e.length]="rcbDisabled"; 90}if(d){e[e.length]=" rcbTemplate"; 91}e[e.length]="' "; 92if(this.get_comboBox().get_enableAriaSupport()){e[e.length]="role='option' tabindex='-1' "; 93}e[e.length]=">"; 94if(d){this._renderTemplatedItem(e); 95}else{this._renderItem(e); 96}e[e.length]="</li>"; 97},_renderItem:function(d){if(this.get_comboBox()._checkBoxes){d[d.length]="<label>"; 98this._renderCheckBox(d); 99this._renderItemContent(d); 100d[d.length]="</label>"; 101}else{this._renderItemContent(d); 102}},_renderTemplatedItem:function(d){if(this.get_comboBox()._checkBoxes){d[d.length]="<label>"; 103this._renderCheckBox(d); 104d[d.length]="</label>"; 105}d[d.length]=this._renderedClientTemplate; 106},_renderItemContent:function(d){if(this.get_imageUrl()){this._renderImage(d); 107}d[d.length]=this.get_text(); 108},_renderCheckBox:function(d){d[d.length]="<input type='checkbox' class='rcbCheckBox'"; 109if(this.get_checked()){d[d.length]=" checked='checked'"; 110}if(!this.get_enabled()){d[d.length]=" disabled='disabled'"; 111}d[d.length]=" />"; 112},_renderImage:function(d){d[d.length]="<img alt='' src='"+this.get_imageUrl()+"' class='rcbImage'"; 113if(!this.get_enabled()){d[d.length]=" disabled='disabled'"; 114}d[d.length]="/>"; 115return d; 116},_updateImageSrc:function(){var f=this.get_imageUrl(),d=this.get_disabledImageUrl(); 117if(!this.get_enabled()&&d){f=d; 118}
118if(f&&this.get_element()){var e=this.get_imageElement(); 119if(!e){e=this._createImageElement(); 120}f=f.replace(/&/ig,"&"); 121if(f!=e.src){e.src=f; 122}}},_createImageElement:function(){var f=this.get_element(),e=this.get_checkBoxElement(),d=a("<img class='rcbImage' alt='' />"); 123this._imageElement=d.get(0); 124if(e){d.insertAfter(e); 125}else{if(f.firstChild){f.insertBefore(this._imageElement,f.firstChild); 126}else{f.appendChild(this._imageElement); 127}}return this._imageElement; 128},get_checkBoxElement:function(){if(!this._checkBoxElement){this._checkBoxElement=a(this.get_element()).find("label > input[type='checkbox']").get(0)||null; 129}return this._checkBoxElement; 130},get_imageElement:function(){if(!this._imageElement){var d=a(this.get_element()); 131this._imageElement=d.find("img.rcbImage").get(0); 132}return this._imageElement; 133},get_disabledImageUrl:function(){return this._properties.getValue("disabledImageUrl",null); 134},set_disabledImageUrl:function(d){this._properties.setValue("disabledImageUrl",d,true); 135this._updateImageSrc(); 136},get_imageUrl:function(){this._imageUrl=this._properties.getValue("imageUrl",null); 137if(this._imageUrl){return this._imageUrl; 138}if(!this._imageUrl){var d=this.get_imageElement(); 139if(d){this._imageUrl=d.src; 140}}return this._imageUrl; 141},set_imageUrl:function(d){this._imageUrl=d; 142this._properties.setValue("imageUrl",d,true); 143this._updateImageSrc(); 144},get_value:function(){return this._properties.getValue("value",""); 145},select:function(){this._select(null); 146},hide:function(){this.set_visible(false); 147},show:function(){this.set_visible(true); 148},check:function(){this.set_checked(true); 149},uncheck:function(){this.set_checked(false); 150},get_checked:function(){return this._properties.getValue("checked",false)===true; 151},set_checked:function(f){if(!this.get_enabled()){return; 152}this._setChecked(f); 153var d=this.get_comboBox(),e=this.get_index(); 154if(d){if(f){d._registerCheckedIndex(e); 155}else{d._unregisterCheckedIndex(e); 156}d._updateComboBoxText(); 157if(d._checkAllElement){d._updateCheckAllState(); 158}}},_setChecked:function(e){var d=this.get_comboBox(); 159if(d&&d._checkBoxes){this._element.setAttribute("aria-checked",e); 160}this._properties.setValue("checked",e); 161this._updateCheckBoxCheckedState(e); 162},_updateCheckBoxCheckedState:function(e){var d=a(this.get_checkBoxElement()); 163if(d[0]){if(e){d.prop("checked",true); 164}else{d.prop("checked",false); 165}}},_select:function(g){if(!this.get_isEnabled()||this.get_isSeparator()){return; 166}var d=this.get_comboBox(); 167if(!d.get_simpleRendering()&&d.raise_selectedIndexChanging(this,g)===true){return; 168}var j=d.get_text(); 169var h=d._getLastSeparatorIndex(j); 170var k=j.substring(0,h+1)+this.get_text(); 171var i=d.get_selectedItem(); 172if(i){i.set_selected(false); 173}d.set_text(k); 174d.set_originalText(k); 175d.set_value(this.get_value()); 176d.set_selectedItem(this); 177d.set_selectedIndex(this.get_index()); 178if(d.get_simpleRendering()){this.get_element().selected="selected"; 179}this.set_selected(true); 180this.highlight(); 181d.raise_selectedIndexChanged(this,g); 182var f={Command:"Select",Index:this.get_index()}; 183d.postback(f); 184},_createChildControls:function(){},unHighlight:function(){var d=this.get_comboBox(),e; 185if(d){if(!d.get_isTemplated()||d.get_highlightTemplatedItems()){e=this.get_element(); 186var f=/\brcbHovered\b/; 187this._replaceCssClass(e,f,"rcbItem"); 188if(d.get_enableAriaSupport()){c.RadComboBox._toggleActiveDescendantAttributes(e,d.get_id(),false); 189}}d.set_highlightedItem(null); 190}},highlight:function(){if(!this.get_isEnabled()||this.get_isSeparator()){return; 191}var d=this.get_comboBox(); 192if(!d.get_isTemplated()||d.get_highlightTemplatedItems()){var f=d.get_highlightedItem(); 193if(f){f.unHighlight(); 194}var e=this.get_element(); 195if(e){var g=/\brcbItem\b/; 196this._replaceCssClass(e,g,"rcbHovered"); 197if(d.get_enableAriaSupport()){c.RadComboBox._toggleActiveDescendantAttributes(e,d.get_id(),true); 198}}}d.set_highlightedItem(this); 199},scrollOnTop:function(){var d=this.get_comboBox(); 200if(d&&d.get_simpleRendering()){return; 201}var f=this.get_element().offsetTop,e=d._getHeaderElement(); 202if(e){f=f-e.offsetHeight; 203}d.get_childListElementWrapper().scrollTop=f; 204},scrollIntoView:function(){var e=this.get_comboBox(),i=this.get_element
204(); 205if(e&&e.get_simpleRendering()){return; 206}var l=i.offsetTop; 207var k=i.offsetHeight; 208var h=e.get_childListElementWrapper(); 209var f=h.scrollTop; 210var g=h.offsetHeight; 211var d=e.get_checkAllCheckBoxDivElement(); 212if(d){l+=d.offsetHeight; 213}if(l+k>f+g){h.scrollTop=l+k-g; 214if(h.clientWidth<h.scrollWidth){var j=c.RadComboBox._getScrollBarWidth(); 215h.scrollTop+=j; 216}}else{if(l<=f){h.scrollTop=l; 217}}},nextItem:function(){return this.get_comboBox().get_items().getItem(this.get_index()+1); 218},_replaceCssClass:function(d,f,e){d.className=d.className.replace(f,e); 219},_createChildListElement:function(){var d=document.createElement("ul"); 220this.get_combobox().get_dropDownElement().appendChild(d); 221},set_selected:function(d){this._properties.setValue("selected",d); 222},get_selected:function(){return this._properties.getValue("selected",false); 223},get_highlighted:function(){var d=this.get_comboBox(); 224if(!d){return false; 225}return d.get_highlightedItem()==this; 226},disable:function(){this._changeEnabledState(false); 227},enable:function(){this._changeEnabledState(true); 228},_changeEnabledState:function(h){this.set_enabled(h); 229var d=this.get_comboBox(),f=this.get_element(),g="rcbItem",e="rcbDisabled"; 230if(d&&d.get_simpleRendering()){if(h){f.removeAttribute("disabled"); 231}else{f.disabled="disabled"; 232}}else{if(h){a(f).removeClass(e); 233a(f).addClass(g); 234}else{a(f).addClass(e); 235a(f).removeClass(g); 236}}},set_enabled:function(e){this._properties.setValue("enabled",e,true); 237var d=a(this.get_checkBoxElement()); 238if(d[0]){if(!e){d.attr("disabled","disabled"); 239}else{d.removeAttr("disabled"); 240}}this._updateImageSrc(); 241},get_textElement:function(){return this.get_element(); 242},get_comboBox:function(){return this._parent; 243},_getHierarchicalIndex:function(){return this.get_index(); 244},get_isSeparator:function(){return this._properties.getValue("isSeparator",false); 245},set_isSeparator:function(e){this._properties.setValue("isSeparator",e,true); 246var d=this.get_element(); 247if(d){Sys.UI.DomElement.toggleCssClass(d,"rcbSeparator"); 248}},get_clientTemplate:function(){var e=this.get_comboBox(),d=this._clientTemplate; 249if(d){return d; 250}else{if(e){return e.get_clientTemplate(); 251}}return d; 252},set_clientTemplate:function(d){this._clientTemplate=d; 253},bindTemplate:function(d){if(!d){d=this._extractDataItem(); 254}this._renderedClientTemplate=c.TemplateRenderer.renderTemplate(d,this.get_comboBox(),this); 255if(this.get_element()){this._applyTemplate(); 256}},_extractDataItem:function(){return{Text:this.get_text(),Value:this.get_value(),ImageUrl:this.get_imageUrl(),DisabledImageUrl:this.get_disabledImageUrl(),Attributes:this.get_attributes()._data}; 257},_applyTemplate:function(){if(!this._renderedClientTemplate){return; 258}var e=this.get_textElement(),d=a(this.get_element()).children("input[type='checkbox']").get(0),f=""; 259if(d){f=d.outerHTML; 260}f+=this._renderedClientTemplate; 261e.innerHTML=f; 262a(e).addClass("rcbTemplate"); 263},_applyCssClass:function(d,e){this._removeClassFromElement(e); 264this._addClassToElement(d); 265},_removeClassFromElement:function(d){a(this.get_element()).removeClass(d); 266},_addClassToElement:function(d){a(this.get_element()).addClass(d); 267},_dispose:function(){c.RadComboBoxItem.callBaseMethod(this,"_dispose"); 268this._parent=null; 269}}; 270c.RadComboBoxItem.registerClass("Telerik.Web.UI.RadComboBoxItem",c.ControlItem); 271})(); 272(function(){var a=Telerik.Web.UI; 273Telerik.Web.UI.RadComboBoxItemCollection=function(b){Telerik.Web.UI.RadComboBoxItemCollection.initializeBase(this,[b]); 274}; 275a.RadComboBoxItemCollection.prototype={clear:function(){var b=this._parent._getControl(); 276if(b._checkBoxes){b._checkedIndicesJson="[]"; 277b._checkedIndices=[]; 278var e=b.get_items(); 279for(var c=0,f=e.get_count(); 280c<f; 281c++){var d=b.get_items().getItem(c); 282d.set_checked(false); 283}b.updateClientState(); 284}a.RadComboBoxItemCollection.callBaseMethod(this,"clear"); 285},add:function(b){a.RadComboBoxItemCollection.callBaseMethod(this,"add",[b]); 286this._resizeDropDown(); 287},remove:function(b){a.RadComboBoxItemCollection.callBaseMethod(this,"remove",[b]); 288this._resizeDropDown(); 289},removeAt:function(b){a.RadComboBoxItemCollection.callBaseMethod(this,"removeAt",[b]); 290this._resizeDropDown(); 291},_resizeDropDown:function(){if(this._control){this._control._resizeDropDown(); 292}}}; 293a.RadComboBoxItemCollection.registerClass("Telerik.Web.UI.RadComboBoxItemCollection",a.ControlItemCollection); 294})(); 295(function(){var a=Telerik.Web.UI; 296a.RadComboBoxEventArgs=function(b){a.RadComboBoxEventArgs.initializeBase(this); 297this._domEvent=b; 298}; 299a.RadComboBoxEventArgs.prototype={get_domEvent:function(){return this._domEvent; 300}}; 301a.RadComboBoxEventArgs.registerClass("Telerik.Web.UI.RadComboBoxEventArgs",Sys.EventArgs); 302a.RadComboBoxCancelEventArgs=function(b){a.RadComboBoxCancelEventArgs.initializeBase(this); 303this._domEvent=b; 304}; 305a.RadComboBoxCancelEventArgs.prototype={get_domEvent:function(){return this._domEvent; 306}}; 307a.RadComboBoxCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxCancelEventArgs",Sys.CancelEventArgs); 308a.RadComboBoxItemEventArgs=function(c,b){a.RadComboBoxItemEventArgs.initializeBase(this); 309this._item=c; 310this._domEvent=b; 311}; 312a.RadComboBoxItemEventArgs.prototype={get_item:function(){return this._item; 313},get_domEvent:function(){return this._domEvent; 314}}; 315a.RadComboBoxItemEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemEventArgs",Sys.EventArgs); 316a.RadComboBoxItemCancelEventArgs=function(c,b){Telerik.Web.UI.RadComboBoxItemCancelEventArgs.initializeBase(this); 317this._item=c; 318this._domEvent=b; 319}; 320a.RadComboBoxItemCancelEventArgs.prototype={get_item:function(){return this._item; 321},get_domEvent:function(){return this._domEvent; 322}}; 323a.RadComboBoxItemCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemCancelEventArgs",Sys.CancelEventArgs); 324a.RadComboBoxRequestEventArgs=function(c,b){Telerik.Web.UI.RadComboBoxRequestEventArgs.initializeBase(this); 325this._text=c; 326this._domEvent=b; 327}; 328a.RadComboBoxRequestEventArgs.prototype={get_text:function(){return this._text; 329},get_domEvent:function(){return this._domEvent; 330}}; 331a.RadComboBoxRequestEventArgs.registerClass("Telerik.Web.UI.RadComboBoxRequestEventArgs",Sys.EventArgs); 332a.RadComboBoxRequestCancelEventArgs=function(d,b,c){a.RadComboBoxRequestCancelEventArgs.initializeBase(this); 333this._text=d; 334this._context=b; 335this._domEvent=c; 336}; 337a.RadComboBoxRequestCancelEventArgs.prototype={get_text:function(){return this._text; 338},get_context:function(){return this._context; 339},get_domEvent:function(){return this._domEvent; 340}}; 341a.RadComboBoxRequestCancelEventArgs.registerClass("Telerik.Web.UI.RadComboBoxRequestCancelEventArgs",Sys.CancelEventArgs); 342a.RadComboBoxItemsRequestFailedEventArgs=function(d,c,b){a.RadComboBoxItemsRequestFailedEventArgs.initializeBase(this); 343this._text=d; 344this._errorMessage=c; 345this._domEvent=b; 346}; 347a.RadComboBoxItemsRequestFailedEventArgs.prototype={get_text:function(){return this._text; 348},get_errorMessage:function(){return this._errorMessage; 349},get_domEvent:function(){return this._domEvent; 350}}; 351a.RadComboBoxItemsRequestFailedEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemsRequestFailedEventArgs",a.RadComboBoxCancelEventArgs); 352a.RadComboBoxItemDataBoundEventArgs=function(c,b){a.RadComboBoxItemDataBoundEventArgs.initializeBase(this,[c]); 353this._dataItem=b; 354}; 355a.RadComboBoxItemDataBoundEventArgs.prototype={get_dataItem:function(){return this._dataItem; 356}}; 357a.RadComboBoxItemDataBoundEventArgs.registerClass("Telerik.Web.UI.RadComboBoxItemDataBoundEventArgs",a.RadComboBoxItemEventArgs); 358})(); 359(function(){var a=$telerik.$; 360var b=Telerik.Web.UI; 361a.registerEnum(b,"Keys",{Tab:9,Enter:13,Shift:16,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Insert:45,Del:46,Zero:48,Numpad0:96,Numpad9:105,F1:112,F12:123,Delete:127}); 362a.registerEnum(b,"RadComboBoxFilter",{None:0,Contains:1,StartsWith:2}); 363a.registerEnum(b,"RadComboBoxExpandDirection",{Up:1,Down:2}); 364a.registerEnum(b,"RadComboBoxCheckedItemsTexts",{FitInInput:0,DisplayAllInInput:1}); 365a.registerEnum(b,"RadComboBoxDropDownAutoWidth",{Disabled:0,Enabled:1}); 366})(); 367(function(a){$telerik.findComboBox=$find; 368$telerik.toComboBox=function(h){return h; 369}; 370Type.registerNamespace("Telerik.Web.UI"); 371var c=Telerik.Web.UI,b=Sys.Serialization.JavaScriptSerializer,d=Sys.UI.DomElement.addCssClass,g=Sys.UI.DomElement.removeCssClass,f="rcbInput",e="rcbEmptyMessage"; 372c.RadComboBox=function(h){c.RadComboBox.initializeBase(this,[h]); 373this._callbackText=""; 374this._filterText=""; 375this._children=null; 376this._virtualScroll=false; 377this._itemData=null; 378this._selectedItem=null; 379this._selectedIndex=null; 380this._setSelectedItem=false; 381this._enableItemCaching=false; 382this._openDropDownOnLoad=false; 383this._allowCustomText=false; 384this._markFirstMatch=false; 385if(this.get_simpleRendering()){this._originalText=this.get_selectElementText(); 386}else{this._originalText=this.get_inputDomElement().value; 387}var i=this.get_inputDomElement()||this.get_selectElement(); 388i.setAttribute("autocomplete","off"); 389this._cachedText=this._originalText; 390this._cachedOffsetHeight=""; 391this._text=""; 392this._value=""; 393this._postBackReference=null; 394this._dropDownElement=null; 395this._inputDomElement=null; 396this._imageDomElement=null; 397this._isTemplated=false; 398this._requestTimeoutID=0; 399this._filterDuration=200; 400this._highlightTemplatedItems=false; 401this._clientState={value:"",text:"",enabled:true,logEntries:[],checkedIndices:[],checkedItemsTextOverflows:false}; 402this._uniqueId=null; 403this._rightToLeft=false; 404this._isDetached=false; 405this._overlay=null; 406this._enableScreenBoundaryDetection=true; 407this._suppressChange=false; 408this._lastKeyCode=null; 409this._loadingDiv=null; 410this._showMoreResultsBox=false; 411this._focused=false; 412this._causesValidation=true; 413this._webServiceSettings=new c.WebServiceSettings({}); 414this._webServiceLoader=null; 415this._enabled=true; 416this._fireEvents=this._enabled; 417this._slide=null; 418this._expandAnimation=new c.AnimationSettings({}); 419this._collapseAnimation=new c.AnimationSettings({}); 420this._expandDirection=c.jSlideDirection.Down; 421this._animationEndedDelegate=null; 422this._animationStartedDelegate=null; 423this._showDropDownOnTextboxClick=true; 424this._dropDownWidth=""; 425this._height=""; 426this._maxHeight=""; 427this._childListElementWrapper=null; 428this._skin=""; 429this._skipLoadingItems=false; 430this._ajaxRequest=false;
431this._pendingAjaxRequestsCount=0; 432this._emptyMessage=null; 433this._disposed=false; 434this._disposeChildElements=true; 435this._firstOpeningOfDropDown=true; 436this._lodIsAutomatic=false; 437this._enableOverlay=true; 438this._minFilterLength=0; 439this._clientTemplate=null; 440this._itemsPerRequest=-1; 441this.lodHashTable={}; 442this._checkBoxes=false; 443this._checkedIndices=[]; 444this._checkedIndicesJson="[]"; 445this._postBackOnCheck=false; 446this._postBackOnCheckAllCheck=false; 447this._checkedItemsTextOverflows=false; 448this._enableCheckAllItemsCheckBox=false; 449this._checkAllElement=null; 450this._checkedItemsTexts=c.RadComboBoxCheckedItemsTexts.FitInInput; 451this._allChecked=false; 452this._escKeyPressed=false; 453this._defaultItem=null; 454this._defaultValue=null; 455this._defaultText=null; 456this._view=null; 457this._dropDownAutoWidth=c.RadComboBoxDropDownAutoWidth.Disabled; 458this._clientDataSource=null; 459this._clientDataSourcePageIndex=-1; 460this._shouldFocus=false; 461this._addEmptyMessageToClientState=false; 462this._ariaSettings=null; 463}; 464c.RadComboBox.prototype={initialize:function(){c.ControlItemContainer.callBaseMethod(this,"initialize"); 465Array.add(c.RadComboBox.ComboBoxes,this); 466this._view=new c.RadComboBox.ViewFactory.GetView(this); 467this._clientState.value=this._value; 468this._clientState.text=this._text; 469if(this._defaultValue!==null&&this._text==this._defaultText){this.get_element().value=this._defaultValue; 470}else{this.get_element().value=this._text; 471}this._log.initialize(); 472this._initializeEventMap(); 473if(this.get_simpleRendering()){this._initializeSelect(); 474}else{this._initializeAnimation(); 475this._initializeDropDown(); 476this._initializeInputEvents(); 477this._initializeViewEvents(); 478if(this._virtualScroll){this._initializeVirtualScroll(); 479}if(this.get_moreResultsBoxElement()){this._initializeMoreResultsBox(); 480}if(this._checkBoxes){this._initializeCheckBoxes(); 481}this._initializeDocumentEvents(); 482this._initializeWindowEvents(); 483if(c.RadComboBox._getNeedsFakeInput()){this._deployFakeInput(); 484}this.repaint(); 485this._view.initialize(); 486if($telerik.isRightToLeft(this.get_element())){this._initRightToLeft(); 487}if(this.get_enableAriaSupport()){this._applyWaiAria(); 488}}if(this._openDropDownOnLoad&&!this.get_dropDownVisible()){this.showDropDown(); 489}if(this.get_isUsingODataSource()){this._initializeODataSourceBinder(); 490}this._cdInitDelegate=a.proxy(this._initializeClientDataSource,this); 491Sys.Application.add_load(this._cdInitDelegate); 492if(this.get_checkBoxes()&&this._checkedItemsTexts==c.RadComboBoxCheckedItemsTexts.FitInInput){this._setOriginalTextWithCheckBoxes(); 493}if(this._shouldFocus){var h=a(this.get_inputDomElement()); 494h.focus(); 495if(this.get_enableTextSelection()&&this.get_markFirstMatch()){h.select(); 496}else{this._selectText(h.val().length,0); 497}}if(this._navigationSettings){this._applyKeyboardNavigationSettings(); 498this._keyboardNavigationSettings.set_element(this.get_inputDomElement()); 499}if(this._fireEvents){this.raiseEvent("load",null); 500}},_initializeViewEvents:function(){this.get_view().observe({inputClick:this._onInputCellClick,buttonClick:this._onImageClick},this); 501},get_rippleZonesConfiguration:function(){var h=this.get_allowCustomText()?".rcbActionButton":".rcbInner"; 502return[{initializeRipples:true,element:this.get_element(),rippleConfigurations:[{containerSelector:h,disabledClass:"rcbDisabled"}]},{element:this.get_dropDownElement(),rippleConfigurations:[{containerSelector:".rcbHovered,.rcbCheckAllItemsHovered label,.rcbMoreResults"}]}]; 503},_initializeInputEvents:function(){var h=this.get_inputDomElement(); 504var i=this; 505if(i._markFirstMatch&&i.get_filter()==c.RadComboBoxFilter.None&&!i.get_enableLoadOnDemand()){a(h).bind("keypress",function(j){i._onKeyPressCheckSelection(j); 506}); 507}if($telerik.isIE){a(h).bind("keyup",function(j){i._onKeyUpIE(j); 508}).bind("paste",function(){setTimeout(function(){i._updateFilterText=true; 509i._onChangeHelper(null); 510},1); 511}); 512}a(h).on("blur",function(){if(!i._postBackReference){i.get_view().blur(); 513if(i._focused){i._focused=false; 514}}}); 515this._onFocusDelegate=Function.createDelegate(this,this._onFocus); 516$telerik.addHandler(h,"focus",this._onFocusDelegate); 517this._eventMap.addHandlerForClassName("keydown","rcbInput",this._onKeyDown); 518this._eventMap.addHandlerForClassName("keypress","rcbInput",this._onKeyPress); 519if(!$telerik.isIE){this._eventMap.addHandlerForClassName("input","rcbInput",this._onInputChange); 520}},_initializeWindowEvents:function(){this._onWindowUnloadDelegate=Function.createDelegate(this,this._onWindowUnload); 521$telerik.addHandler(window,"unload",this._onWindowUnloadDelegate);
522if(this._openDropDownOnLoad){this._onOpenOnLoad=Function.createDelegate(this,this.showDropDown); 523$telerik.addHandler(window,"load",this._onOpenOnLoad); 524}},_initializeDocumentEvents:function(){this._onDocumentClickDelegate=Function.createDelegate(this,this._onDocumentClick); 525$telerik.addHandler(document,"mousedown",this._onDocumentClickDelegate); 526$telerik.addHandler(document,"contextmenu",this._onDocumentClickDelegate); 527},_detachInputEvents:function(){var h=this.get_inputDomElement(); 528a(h).unbind(); 529$telerik.removeHandler(h,"focus",this._onFocusDelegate); 530this._onFocusDelegate=null; 531},_detachWindowEvents:function(){if(this._openDropDownOnLoad){$telerik.removeHandler(window,"load",this._onOpenOnLoad); 532this._onOpenOnLoad=null; 533}$telerik.removeHandler(window,"unload",this._onWindowUnloadDelegate); 534this._onWindowUnloadDelegate=null; 535},_detachDocumentEvents:function(){$telerik.removeHandler(document,"mousedown",this._onDocumentClickDelegate); 536$telerik.removeHandler(document,"contextmenu",this._onDocumentClickDelegate); 537this._onDocumentClickDelegate=null; 538},dispose:function(){if(this._disposed){return; 539}Array.remove(c.RadComboBox.ComboBoxes,this); 540if(this.get_simpleRendering()){this._disposeSelect(); 541}else{var h=Sys.WebForms?Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack():false; 542this._disposeChildElements=h&&this._isDetached; 543this._disposeAnimation(); 544if(this._checkBoxes){this._diposeCheckBoxes(); 545}this._detachWindowEvents(); 546this._detachInputEvents(); 547this._detachDocumentEvents(); 548this._detachDropDownEvents(); 549this._view.dispose(); 550if(this.get_moreResultsBoxElement()){this._detachMoreResultsBoxEvents(); 551}if(this._virtualScroll&&this._onDropDownScrollDelegate){this._detachVirtualScrollEvents(); 552}this._animatedElement=null; 553this._animatedContainer=null; 554this._animationContainer=null; 555}if(this._highlightedItem){this._highlightedItem=null; 556}if(this._selectedItem){this._selectedItem=null; 557}this._disposed=true; 558this._expandAnimation=null; 559this._collapseAnimation=null; 560this._webServiceSettings=null; 561c.RadComboBox.callBaseMethod(this,"dispose"); 562if(this._children){this._children=null; 563}if(this._fakeInput){this._fakeInput=null; 564}if(!this.get_simpleRendering()){this._nullifyEventExpandos(); 565}},_nullifyEventExpandos:function(){if(this._childListElement){this._childListElement._events=null; 566this._childListElement=null; 567}this._childListElementWrapper._events=null; 568this._childListElementWrapper=null; 569},_applyWaiAria:function(){this._applyInputElementAttributes(); 570this._applyToggleElementAttributes(); 571this._applyChildListElementAttributes(); 572this._applyAriaAttributesToChildren(); 573if(this._ariaSettings){var i=b.deserialize(this._ariaSettings); 574var h=new c.WaiAriaDecorator(this.get_inputDomElement(),i); 575h.setAttributes(); 576}},_applyInputElementAttributes:function(){var k=this; 577var j=k.get_inputDomElement(); 578var i=k.get_id(); 579var h=i+"_listbox"; 580if(this._checkAllElement&&this.get_enableAriaSupport()){h+=" "+i+"_checkAll"; 581}a(j).attr({role:"combobox","aria-haspopup":true,"aria-expanded":false,"aria-readonly":false,"aria-disabled":!k.get_enabled(),"aria-busy":false,"aria-owns":h}); 582j.setAttribute("aria-autocomplete",k.get_markFirstMatch()?"both":"none"); 583},_applyToggleElementAttributes:function(){var h=this,i=h.get_imageDomElement()||$telerik.getFirstChildByTagName(h.get_wrapper(),"button",0); 584a(i).attr({role:"button","aria-controls":h.get_id()+"_listbox",tabindex:h.get_inputDomElement().tabIndex}); 585},_applyChildListElementAttributes:function(){var h=this; 586a(h.get_childListElement()).attr({id:h.get_id()+"_listbox",role:"listbox","aria-live":"polite","aria-hidden":true,tabindex:0}); 587},_applyAriaAttributesToChildren:function(){var j=this.get_items()._array,k=j.length; 588for(var h=0; 589h<k; 590h++){this._applyItemElementAttributes(j[h]._element); 591}},_applyItemElementAttributes:function(h){if(this._checkBoxes){h.setAttribute("role","checkbox"); 592}else{h.setAttribute("role","option"); 593}h.setAttribute("tabindex","-1"); 594},_applyEmptyMessage:function(){var h=this,j=h.get_inputDomElement(),i=h.get_emptyMessage(); 595if(i&&this.get_text()===""){this._suppressChange=true; 596j.value=i; 597d(j,e); 598this._suppressChange=false; 599}},_checkIsThisPartOfWord:function(j,i){var k=""; 600if(this.get_selectedItem()){k=this.get_selectedItem().get_text(); 601}var h=k.lastIndexOf(i); 602if(h>-1&&h==j){return true; 603}return false;
604},_childInserted:function(h,i,j){c.RadComboBox.callBaseMethod(this,"_childInserted",[h,i,j]); 605if(!this._childControlsCreated){return; 606}if(this._checkBoxes){if(i.get_checked()){this._registerCheckedIndex(h); 607}if(h!=this.get_items().get_count()-1){this._updateCheckedIndices(); 608}this._updateComboBoxText(); 609if(this._checkAllElement){this._updateCheckAllState(); 610}}},_childRemoved:function(i,k){var h=i.get_element(); 611if(k.get_items().get_count()===0&&!this.get_simpleRendering()&&!this._getHeaderElement()&&!this._getFooterElement()&&!this._loadingDiv){h=k._childListElement; 612k._childListElement=null; 613}if(h){h.innerHTML=""; 614if(h.parentNode){h.parentNode.removeChild(h); 615}h=null; 616}if(i==this.get_selectedItem()){this.set_selectedItem(null); 617this.set_highlightedItem(null); 618this.set_text(""); 619if(this.get_simpleRendering()){var j=this.get_selectedOption(); 620if(j){j._item.select(); 621}}}else{if(i==this.get_highlightedItem()){this.set_highlightedItem(null); 622}}if(this._checkBoxes){this._updateCheckedIndices(); 623this._updateComboBoxText(); 624}c.RadComboBox.callBaseMethod(this,"_childRemoved",[i,k]); 625},_childRemoving:function(h){var i=h.get_index(); 626if(this._itemData){Array.remove(this._itemData,this._itemData[i]); 627}c.RadComboBox.callBaseMethod(this,"_childRemoving",[h]); 628},_childrenCleared:function(l){this.set_selectedItem(null); 629this.set_highlightedItem(null); 630var h=l.get_childListElement(); 631var k=l.get_items().get_count(); 632var j; 633if(h&&!this._getHeaderElement()&&!this._getFooterElement()){for(j=0; 634j<k; 635j++){l.get_items().getItem(j)._dispose(); 636}h.innerHTML=""; 637h=null; 638}else{if(h){for(j=0; 639j<k; 640j++){this._childRemoved(l.get_items().getItem(j),l); 641}}}if(this._checkBoxes){this._updateCheckedIndices(); 642this._updateComboBoxText(); 643}},_createChildControls:function(){this._children=new c.RadComboBoxItemCollection(this); 644c.RadComboBox._createChildControls(this,this._children); 645},_ensureChildControls:function(){if(!this._childControlsCreated){this._createChildControls(); 646this._childControlsCreated=true; 647if(!this._setSelectedItem){this._setSelectedItem=true; 648this._setFirstSelectedItem(); 649}}},_findItemToSelect:function(i){var h=this.findItemByValue(this.get_value()); 650if(!h){var j=i!==undefined?i:this.get_text(); 651h=this.findItemByText(j); 652}return h; 653},_findNearestItem:function(h){while(h.nodeType!==9){if(h._item&&c.RadComboBoxItem.isInstanceOfType(h._item)){return h._item; 654}h=h.parentNode; 655}return null; 656},_getFooterElement:function(){if(this.get_dropDownElement()){return $telerik.getChildByClassName(this.get_dropDownElement(),"rcbFooter",0); 657}return null; 658},_getHeaderElement:function(){if(this.get_dropDownElement()){return $telerik.getChildByClassName(this.get_dropDownElement(),"rcbHeader",0); 659}return null; 660},_getInputCursorPosition:function(){var j=this.get_inputDomElement(); 661var h=j.selectionStart; 662if($telerik.isIE&&document.selection){try{var k=document.selection.createRange().duplicate(); 663k.moveStart("sentence",-100000); 664h=k.text.length; 665}catch(i){}}return h; 666},_getInputSelectionRange:function(){var i=this.get_inputDomElement(); 667var k={}; 668if($telerik.isIE&&document.selection){try{var j=document.selection.createRange(); 669k.start=i.value.lastIndexOf(j.text); 670k.end=k.start+j.text.length; 671}catch(h){}}else{k.start=i.selectionStart; 672k.end=i.selectionEnd; 673}return k; 674},_getInputSelection:function(h){var o=0,i=0,m,n,p,l,j; 675if(typeof h.selectionStart=="number"&&typeof h.selectionEnd=="number"){o=h.selectionStart; 676i=h.selectionEnd; 677}else{try{n=document.selection.createRange(); 678if(n&&n.parentElement()==h){l=h.value.length; 679m=h.value.replace(/\r\n/g,"\n"); 680p=h.createTextRange(); 681p.moveToBookmark(n.getBookmark()); 682j=h.createTextRange(); 683j.collapse(false); 684if(p.compareEndPoints("StartToEnd",j)>-1){o=i=l; 685}else{o=-p.moveStart("character",-l); 686o+=m.slice(0,o).split("\n").length-1;
687if(p.compareEndPoints("EndToEnd",j)>-1){i=l; 688}else{i=-p.moveEnd("character",-l); 689i+=m.slice(0,i).split("\n").length-1; 690}}}}catch(k){}}return{selectionStart:o,selectionEnd:i}; 691},_getInputTargetSelection:function(h){var m=this.get_text(); 692var l={startIndex:0,length:0}; 693if(!this.get_autoCompleteSeparator()){l.length=m.length; 694return l; 695}if(h===0){return l; 696}if(h==m.length){l.startIndex=m.length; 697return l; 698}var i=this._getSurroundingSeparatorIndices(h); 699var k=i.before; 700var j=i.after; 701if(j==h+1){l.startIndex=j-1; 702return l; 703}if(k==h){l.startIndex=h; 704return l; 705}l.startIndex=k; 706l.length=j-k; 707if(i.last==j){l.length--; 708}return l; 709},_getSurroundingSeparatorIndices:function(j){var m=this.get_text(); 710var h=this.get_autoCompleteSeparator(); 711var l=new RegExp("\\s*["+h+"]\\s*","gi"); 712var k=0; 713var i=0; 714while(l.exec(m)&&l.lastIndex<=j){k=l.lastIndex; 715}i=l.lastIndex>0?l.lastIndex:m.length; 716return{before:k,after:i,last:l.lastIndex}; 717},_getTrimStartingSpaces:function(){return this._lodIsAutomatic||(this.get_autoCompleteSeparator()!==null&&!this.get_enableLoadOnDemand()); 718},_getRelatedTarget:function(i){var k=i.toElement||i.relatedTarget||i.fromElement; 719if(!k){return null; 720}try{var h=k.tagName; 721}catch(j){k=null; 722}return k; 723},_getLastSeparator:function(i){if(!this.get_autoCompleteSeparator()){return null; 724}var h=this._getLastSeparatorIndex(i); 725return i.charAt(h); 726},_getLastSeparatorIndex:function(n){var l=-1; 727if(!this.get_autoCompleteSeparator()){return l; 728}for(var k=0,m=this.get_autoCompleteSeparator().length; 729k<m; 730k++){var j=this.get_autoCompleteSeparator().charAt(k); 731var h=n.lastIndexOf(j); 732if(h>l&&!this._checkIsThisPartOfWord(h,j)){l=h; 733}}return l; 734},_highlightFirstMatch:function(){var h=this._findItemToSelect(); 735if(h&&h.get_enabled()&&!h.get_isSeparator()){h.highlight(); 736}},_toggleExpandedState:function(i){var h=a(this.get_wrapper()); 737h.toggleClass("rcbExpanded",i); 738},_initRightToLeft:function(){var i=this,h=a(i.get_element()); 739this._rightToLeft=true; 740if(this._skin){this.get_element().className=String.format("{0} RadComboBox_rtl RadComboBox_{1}_rtl",this.get_element().className,this._skin); 741this.get_dropDownElement().className=String.format("{0} RadComboBoxDropDown_rtl RadComboBoxDropDown_{1}_rtl",this.get_dropDownElement().className,this._skin); 742}if(h.find(".rcbInner").length!==0){return; 743}if(this.get_imageDomElement()){if(Sys.UI.DomElement.containsCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellRight")){this._replaceCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellRight","rcbArrowCellLeft"); 744this.get_inputDomElement().parentNode.className="rcbInputCell rcbInputCellRight"; 745}else{this._replaceCssClass(this.get_imageDomElement().parentNode,"rcbArrowCellLeft","rcbArrowCellRight"); 746this.get_inputDomElement().parentNode.className="rcbInputCell rcbInputCellLeft"; 747}}},_logInserted:function(h){if(!h.get_parent()._childControlsCreated||!this._enableClientStatePersistence){return; 748}this._log.logInsert(h); 749},_onDocumentClick:function(i){if(!i){i=event; 750}var j=i.target||i.srcElement; 751while(j.nodeType!==9){if(!j.parentNode||j==this.get_element()||j==this.get_dropDownElement()){return; 752}j=j.parentNode; 753}if(this._focused){this._raiseClientBlur(i); 754this._selectItemOnBlur(i); 755if(this._shouldPostbackOnChange()&&this._checkBoxes){if(this.raise_textChange(this,i)===true){return; 756}var h={Command:"TextChanged"}; 757this.postback(h); 758}this._applyEmptyMessage(); 759this._focused=false; 760}if(this.get_dropDownVisible()&&this.get_closeDropDownOnBlur()){this._hideDropDown(i); 761}},_onFocus:function(h){if(this._focused){return; 762}if(this.get_allowCustomText()||this.get_markFirstMatch()&&!this.get_enableLoadOnDemand()){this._ensureChildControls(); 763}var i=this.get_emptyMessage(),j=this.get_inputDomElement(); 764if(i&&i==this.get_text()){this._suppressChange=true; 765if(document.documentMode===8){j.getClientRects(); 766}j.value=this._text; 767if(document.documentMode!==8){j.getClientRects(); 768}g(j,e); 769d(j,f); 770this._suppressChange=false; 771}if(this.get_enableAriaSupport()&&this.get_selectedItem()){j.select(); 772}this._view.focus(h); 773if(!h&&typeof(event)!="undefined"){h=event; 774}this._focused=true; 775this._clickedAfterFocus=false; 776this.raise_onClientFocus(h); 777return true; 778},_onImageClick:function(h){if(this.get_dropDownVisible()){this.get_inputDomElement().focus(); 779}if(this._enabled&&$telerik.isIE&&this._lastTextSelectionParams){this.selectText(this._lastTextSelectionParams.startIndex,this._lastTextSelectionParams.length); 780}if(this._enabled){this._toggleDropDown(h); 781}},_onInputCellClick:function(i){if(!this._enabled){return; 782}if(this.get_text()!==this.get_emptyMessage()){var h=this._getInputCursorPosition();
783var k=this._getInputTargetSelection(h); 784var j=false; 785if(this.get_autoCompleteSeparator()){var l=this._getInputSelectionRange(); 786if(l.start==l.end){j=true; 787}}else{if(!this._clickedAfterFocus){j=true; 788}}if(!this._clickedAfterFocus){this._clickedAfterFocus=true; 789}if($telerik.isIE&&this._clickedAfterFocus){this._lastTextSelectionParams=null; 790}if($telerik.isIE&&j){this._lastTextSelectionParams={startIndex:k.startIndex,length:k.length}; 791}if(j){this.selectText(k.startIndex,k.length); 792}}if(!this.get_dropDownVisible()&&this._showDropDownOnTextboxClick){this._showDropDown(i); 793}return true; 794},_onInputChange:function(h){var j=this.get_inputDomElement(),k=this._text,o,i; 795if(this._escKeyPressed){if(this.get_enableLoadOnDemand()){var n=this.get_selectedItem(); 796if(n===null&&this.findItemByText(this._filterText)){k=this._filterText; 797}}j.value=k; 798this._escKeyPressed=false; 799return; 800}o=this.get_text(),i=this._lodIsAutomatic?this.getLastWord(o,this._getTrimStartingSpaces()):o; 801if(!$telerik.isIE||this._updateFilterText){this._filterText=i; 802}if($telerik.isIE){this._updateFilterText=false; 803}if(!this.get_emptyMessage()||o!=this.get_emptyMessage()){this._ensureChildControls(); 804this._text=o; 805}this.set_value(""); 806if(!this._suppressChange){g(j,e); 807d(j,f); 808}this.get_element().value=this._text; 809this.updateClientState(); 810if(!this._suppressChange){var m=this; 811if(this.get_enableLoadOnDemand()&&this._filterText.length>=this._minFilterLength){if(this._requestTimeoutID>0){window.clearTimeout(this._requestTimeoutID); 812this._requestTimeoutID=0; 813}if(!this.get_dropDownVisible()){this._skipLoadingItems=true; 814this.showDropDown(); 815}if($telerik.isIE&&h){var l=h.keyCode||h.which; 816if(l!=c.Keys.Down&&l!=c.Keys.Up){this._requestTimeoutID=window.setTimeout(function(){if(m._disposed){return; 817}m.requestItems(m._filterText,false); 818},m.get_itemRequestTimeout()); 819}}else{this._requestTimeoutID=window.setTimeout(function(){if(m._disposed){return; 820}m.requestItems(m._filterText,false); 821},m.get_itemRequestTimeout()); 822}return; 823}if(this.get_filter()==c.RadComboBoxFilter.None&&(this._shouldHighlight()||m._filterText==="")){if($telerik.isSafari){setTimeout(function(){m.highlightMatches(); 824},0); 825}else{this.highlightMatches(); 826}}else{this.highlightAllMatches(this.get_text()); 827}}},_onChangeHelper:function(h){if(!this._disposed){var i=this.get_text(); 828clearTimeout(this._keyUpTimeOutID); 829if(this._cachedText!=i){this._cachedText=i; 830this._onInputChange(h); 831}}},_onWindowUnload:function(){this._disposeChildElements=false; 832},_appendTextAfterLastSeparator:function(j){var h=this.get_text(); 833var i=this._getLastSeparatorIndex(h); 834var k=h.substring(0,i+1)+j; 835this.set_text(k); 836},_raiseClientBlur:function(h){if(this._focused){this._view.blur(); 837this.raise_onClientBlur(h); 838}},_replaceCssClass:function(h,j,i){h.className=h.className.replace(j,i); 839},_setFirstSelectedItem:function(){var h=this._findItemToSelect(); 840if(h&&!h.get_isSeparator()){this.set_selectedItem(h); 841}},_shouldPostbackOnChange:function(){var h=this.get_originalText(),i; 842if(h==this.get_emptyMessage()){h=""; 843}if(this.get_checkBoxes()&&this._checkedItemsTexts==c.RadComboBoxCheckedItemsTexts.FitInInput){i=h!=this._getTextWithCheckBoxes(); 844}else{i=(h!=this.get_text()); 845}return i; 846},add_onClientKeyPressing:function(h){this.get_events().addHandler("keyPressing",h); 847},clearItems:function(){this.get_items().clear(); 848this._itemData=null; 849},disable:function(){this._view.disable(); 850this.set_enabled(false); 851var j; 852if(this.get_simpleRendering()){j=this.get_selectElement(); 853}else{j=this.get_inputDomElement(); 854}j.setAttribute("disabled","disabled"); 855this.disableEvents(); 856var k=this.get_items().get_count(); 857if(this.get_enableAriaSupport()){c.RadComboBox._toggleAttribute(this.get_inputDomElement(),"aria-disabled",true,true); 858}for(var h=0; 859h<k; 860h++){this._children.getItem(h).disable(); 861}},disableEvents:function(){this._fireEvents=false; 862},enable:function(){var j; 863if(this.get_simpleRendering()){j=this.get_selectElement(); 864}else{j=this.get_inputDomElement(); 865}j.removeAttribute("disabled"); 866this._view.enable(); 867if(this.get_checkAllCheckBox()){this.enableCheckAllCheckBox(); 868}this.set_enabled(true); 869this.enableEvents(); 870var k=this.get_items().get_count(); 871if(this.get_enableAriaSupport()){c.RadComboBox._toggleAttribute(this.get_inputDomElement(),"aria-disabled",fal
871se,true); 872}for(var h=0; 873h<k; 874h++){this._children.getItem(h).enable(); 875}},enableEvents:function(){this._fireEvents=true; 876},findItemByText:function(l){var j=this.get_items(); 877var k=j.get_count(); 878for(var h=0; 879h<k; 880h++){if(j.getItem(h).get_text()==l){return j.getItem(h); 881}}return null; 882},findItemByValue:function(l){if(l!==0&&!l){return null; 883}var j=this.get_items(); 884var k=j.get_count(); 885for(var h=0; 886h<k; 887h++){if(j.getItem(h).get_value()==l){return j.getItem(h); 888}}return null; 889},get_allowCustomText:function(){return this._allowCustomText; 890},get_causesValidation:function(){return this._causesValidation; 891},get_emptyMessage:function(){return this._emptyMessage; 892},get_enabled:function(){return this._enabled; 893},get_highlightTemplatedItems:function(){return this._highlightTemplatedItems; 894},get_imageDomElement:function(){if(!this._imageDomElement){this._imageDomElement=this._getChildElement("Arrow"); 895}return this._imageDomElement; 896},get_inputDomElement:function(){if(!this._inputDomElement){this._inputDomElement=this._getChildElement("Input"); 897}return this._inputDomElement; 898},get_isTemplated:function(){return this._isTemplated; 899},get_items:function(){return this._getChildren(); 900},get_lastWord:function(){var h=this.getLastWord(this.get_text()); 901return h; 902},get_originalText:function(){return this._originalText; 903},get_readOnly:function(){return !(this.get_allowCustomText()||this.get_markFirstMatch()||this.get_enableLoadOnDemand())&&this.get_filter()==c.RadComboBoxFilter.None; 904},get_text:function(){if(this.get_simpleRendering()){return this._text; 905}else{return this.get_inputDomElement().value; 906}},get_textWithoutEmptyMessage:function(){var h=this.get_inputDomElement(); 907if(h.value===this.get_emptyMessage()&&a(h).hasClass(e)){return""; 908}return h.value; 909},get_value:function(){return this._value; 910},get_visibleItems:function(){var l=[]; 911var h=this._getChildren().get_count(); 912for(var j=0; 913j<h; 914j++){var k=this._getChildren().getItem(j); 915if(k.get_visible()){Array.add(l,k); 916}}return l; 917},getLastWord:function(j,k){var h=-1; 918if(this.get_autoCompleteSeparator()!==null){h=this._getLastSeparatorIndex(j); 919}var i=j.substring(h+1,j.length); 920if(k){i=i.replace(/^ +/,""); 921}return i; 922},get_checkBoxes:function(){return this._checkBoxes; 923},postback:function(h){if(this._checkBoxes&&h.Command=="Select"){return; 924}if(!this._postBackReference){return; 925}var i=this._postBackReference.replace("arguments",b.serialize(h)); 926if(c.RadComboBox.isIEDocumentMode8()||$telerik.isIE9Mode){this.get_element().focus(); 927}eval(i); 928},repaint:function(){var h=this.get_view(); 929if(h){h.repaint(); 930}},saveClientState:function(){var i=this._log._logEntries; 931var h={logEntries:i,value:this._value,text:this._text,enabled:this._enabled,checkedIndices:this._checkedIndices,checkedItemsTextOverflows:this._checkedItemsTextOverflows}; 932if(this._addEmptyMessageToClientState){h.emptyMessage=this.get_emptyMessage(); 933this._addEmptyMessageToClientState=false; 934}return b.serialize(h); 935},selectText:function(i,h){if(!this.get_enableTextSelection()){return; 936}this._selectText(i,h); 937},_selectText:function(j,i){if((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){return; 938}if(this.get_inputDomElement().setSelectionRange){this.get_inputDomElement().setSelectionRange(j,j+i); 939}else{var k=this.get_inputDomElement().createTextRange(); 940k.moveEnd("sentence",-100000); 941if(j===0&&i===0){k.collapse(true); 942return; 943}k.moveStart("character",j); 944k.moveEnd("character",i); 945try{k.select(); 946}catch(h){}}},set_allowCustomText:function(h){this._allowCustomText=h; 947this.repaint(); 948},set_causesValidation:function(h){this._causesValidation=h; 949},set_emptyMessage:function(h){if(this._emptyMessage!==h){this._emptyMessage=h; 950}if(this._enableClientStatePersistence){this._addEmptyMessageToClientState=true; 951}this._applyEmptyMessage(); 952},set_enabled:function(h){this._enabled=h; 953this.updateClientState(); 954},set_highlightTemplatedItems:function(h){this._highlightTemplatedItems=h; 955},set_isTemplated:function(h){this._isTemplated=h; 956},get_clientTemplate:function(){return this._clientTemplate; 957},set_clientTemplate:function(h){this._clientTemplate=h; 958},set_itemData:function(h){this._itemData=h; 959},set_items:function(h){this._children=h; 960},set_originalText:function(h){this._originalText=h; 961},set_text:function(k){k=c.RadComboBox.htmlDecode(k);
962this.get_element().value=k; 963this._suppressChange=true; 964if(!this.get_simpleRendering()){var j=this.get_inputDomElement(); 965j.value=k; 966g(j,e); 967d(j,f); 968this.set_value(""); 969var i; 970if(j.fireEvent&&document.createEventObject){i=document.createEventObject(); 971j.fireEvent("onchange",i); 972}else{if(j.dispatchEvent){var h=true; 973i=document.createEvent("HTMLEvents"); 974i.initEvent("change",h,true); 975j.dispatchEvent(i); 976}}}this._suppressChange=false; 977this._ensureChildControls(); 978this._text=k; 979this._cachedText=k; 980this.updateClientState(); 981},set_value:function(h){this._value=h; 982this.updateClientState(); 983},get_expandDirection:function(){return this._expandDirection; 984},set_expandDirection:function(h){this._expandDirection=h; 985if(this._dropDown){this._dropDown.set_direction(h); 986}},get_localization:function(){return this._localization; 987},set_localization:function(h){this._localization=b.deserialize(h); 988},set_clientDataSource:function(h){this._reinitializeClientDataSource(h); 989},get_tableElement:function(){return this.get_wrapper(); 990},get_view:function(){return this._view; 991},get_wrapper:function(){return this.get_view().get_wrapper(); 992}}; 993a.registerControlProperties(c.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,enableAriaSupport:false,collapseDelay:0,expandDelay:0}); 994a.registerControlEvents(c.RadComboBox,["load","keyPressing","textChange","itemsRequestFailed","selectedIndexChanging","selectedIndexChanged","itemsRequesting","itemsRequested","itemDataBound","dropDownOpening","dropDownOpened","dropDownClosing","dropDownClosed","templateDataBound","onClientFocus","onClientBlur","itemChecking","itemChecked","checkAllChecking","checkAllChecked"]); 995c.RadComboBox._preInitialize=function(j){var i=$get(j); 996var h="inline-block"; 997if($telerik.isIE7){h="inline"; 998}i.style.display=h; 999}; 1000c.RadComboBox.registerClass("Telerik.Web.UI.RadComboBox",c.ControlItemContainer); 1001c.RadComboBox.ViewFactory={GetView:function(i){var j=i._renderMode,h=c.RadComboBox.Views; 1002if(j===c.RenderMode.Classic){return new h.Classic(i); 1003}else{if(j===c.RenderMode.Lite){return new h.Lite(i); 1004}else{if(j===c.RenderMode.Native){return new h.Native(i); 1005}}}}}; 1006c.RadComboBox.makeEventHandler=function(h){(function(){var j={}; 1007a.extend(h,{observe:function(l,k){a.each(l,function(m,n){i(m,n,k); 1008}); 1009},trigger:function(){var k=Array.prototype.slice.call(arguments),l=k.shift(),m=j[l]; 1010if(a.type(m)==="array"){for(var n=0; 1011n<m.length; 1012n++){m[n].func.apply(m[n].context,k); 1013}}},disposeEvents:function(){for(var k in j){delete j[k]; 1014}}}); 1015function i(l,m,k){var n=j[l]||[]; 1016n.push({func:m,context:k}); 1017j[l]=n; 1018}})(); 1019}; 1020})($telerik.$); 1021(function(){var a=$telerik.$; 1022var b=Telerik.Web.UI; 1023b.RadComboBox._toggleAttribute=function(f,d,e,g){var c=a(f); 1024if(g){c.attr(d,e); 1025}else{c.removeAttr(d); 1026}}; 1027b.RadComboBox._toggleActiveDescendantAttributes=function(c,d,e){var f=a("#"+d+"_Input").get(0); 1028d+="_selected_item"; 1029b.RadComboBox._toggleAttribute(f,"aria-activedescendant",d,false); 1030b.RadComboBox._toggleAttribute(c,"aria-selected",e,e); 1031b.RadComboBox._toggleAttribute(c,"id",d,e); 1032b.RadComboBox._toggleAttribute(f,"aria-activedescendant",d,true); 1033}; 1034b.RadComboBox._cancelEvent=function(c){c.preventDefault(); 1035return false; 1036}; 1037b.RadComboBox._createChildControls=function(e,j){var h=e.get_itemData(); 1038if(!h){return; 1039}var c; 1040var k; 1041var m=0; 1042if(e.get_simpleRendering()){c=a(e.get_selectElement()).find("option").toArray(); 1043k=c.length; 1044}else{var d=e.get_childListElement(); 1045if(!d){return; 1046}c=$telerik.getChildrenByTagName(e.get_childListElement(),"li"); 1047k=c.length; 1048if(k>0&&c[0].className=="rcbLoading"){k=k-1; 1049m=1; 1050}}for(var f=m,l=c.length; 1051f<l; 1052f++){var g; 1053if(a(c[f]).hasClass("rcbDefaultItem")){g=new b.RadComboBoxDefaultItem(); 1054g.set_parent(e); 1055g._initialize(h[f-m],c[f]); 1056e._defaultItem=g; 1057continue; 1058}else{g=new b.RadComboBoxItem(); 1059j.add(g); 1060g._initialize(h[f-m],c[f]); 1061}}}; 1062b.RadComboBox._fireValuePropertyChangeEvent=function(c){var d=document.createEventObject(); 1063d.propertyName="value"; 1064c.fireEvent("onpropertychange",d); 1065}; 1066b.RadComboBox._getIsInIFrame=function(){return window.top!=window; 1067}; 1068b.RadComboBox._getLocation=function(c){var f=$telerik.getLocation(c); 1069if(($telerik.isOpera&&Sys.Browser.version<9.800000000000001)||$telerik.isSafari){var d=c.parentNode; 1070while(d&&d.tagName.toUpperCase()!="BODY"&&d.tagName.toUpperCase()!="HTML"){var e=a(d).css("position"); 1071if(e=="relative"||e=="absolute"){f.x+=$telerik.getCorrectScrollLeft(d); 1072f.y+=d.scrollTop; 1073}d=d.parentNode; 1074}}return f; 1075}; 1076b.RadComboBox._getNeedsFakeInput=function(){return $telerik.isIE8&&b.RadComboBox._getIsInIFrame(); 1077}; 1078b.RadComboBox._getScrollBarWidth=function(){if(b.RadComboBox._scrollbarWidth){return b.RadComboBox._scrollbarWidth; 1079}var e,c=0; 1080var f=document.createElement("div"); 1081f.style.position="absolute"; 1082f.style.top="-1000px"; 1083f.style.left="-1000px"; 1084f.style.width="100px"; 1085f.style.height="50px"; 1086f.style.overflow="hidden"; 1087var d=document.createElement("div"); 1088d.style.width="100%"; 1089d.style.height="200px"; 1090f.appendChild(d); 1091document.body.appendChild(f); 1092var g=d.offsetWidth; 1093f.style.overflow="auto"; 1094var h=d.offsetWidth; 1095b.RadComboBox._scrollbarWidth=g-h; 1096if(b.RadComboBox._scrollbarWidth<=0){d.style.width="300px"; 1097e=f.offsetWidth; 1098c=f.clientWidth; 1099b.RadComboBox._scrollbarWidth=e-c; 1100}if(b.RadComboBox._scrollbarWidth<=0){b.RadComboBox._scrollbarWidth=16; 1101}document.body.removeChild(document.body.lastChild); 1102return b.RadComboBox._scrollbarWidth; 1103}; 1104b.RadComboBox.htmlDecode=function(c){return b.RadComboBox.replace(c,{"<":"<",">":">",""":'"',"&":"&"}); 1105}; 1106b.RadComboBox.htmlEncode=function(c){return b.RadComboBox.replace(c,{"&":"&","<":"<",">":">"}); 1107}; 1108b.RadComboBox.isIEDocumentMode8=function(){return document.documentMode&&document.documentMode==8; 1109}; 1110b.RadComboBox.replace=function(e,d){for(var c in d){e=e.replace(new RegExp(c,"g"),d[c]); 1111}return e; 1112}; 1113b.RadComboBox.ComboBoxes=[]; 1114b.RadComboBox._initializeItemConstants=function(){var c=b.RadComboBoxItem; 1115c.STRING_EM_START="<em>",c.STRING_EM_START_HTML_ENCODED=b.RadComboBox.htmlEncode(c.STRING_EM_START),c.REGEX_EM_START_HTML_ENCODED=new RegExp(c.STRING_EM_START_HTML_ENCODED,"g"),c.STRING_EM_END="</em>",c.STRING_EM_END_HTML_ENCODED=b.RadComboBox.htmlEncode(c.STRING_EM_END),c.STRING_EM_END_HTML_ENCODED_REGEX_ESCAPED=c._regExEscape(c.STRING_EM_END_HTML_ENCODED),c.REGEX_EM_END_HTML_ENCODED=new RegExp(c.STRING_EM_END_HTML_ENCODED_REGEX_ESCAPED,"g"); 1116}; 1117b.RadComboBox._initializeItemConstants(); 1118})(); 1119(function(){var b=Telerik.Web.UI,a=$telerik.$; 1120b.RadComboBox.prototype.raise_itemsRequested=function(f,c){var d=new b.RadComboBoxRequestEventArgs(f,c); 1121this.raiseEvent("itemsRequested",d); 1122}; 1123b.RadComboBox.prototype.raise_itemsRequestFailed=function(g,d,c){var f=new b.RadComboBoxItemsRequestFailedEventArgs(g,d,c); 1124this.raiseEvent("itemsRequestFailed",f); 1125return f.get_cancel(); 1126}; 1127b.RadComboBox.prototype.raise_dropDownClosed=function(c){var d=new b.RadComboBoxEventArgs(c); 1128this.raiseEvent("dropDownClosed",d); 1129}; 1130b.RadComboBox.prototype.raise_dropDownClosing=function(c){var d=new b.RadComboBoxCancelEventArgs(c); 1131this.raiseEvent("dropDownClosing",d); 1132return d.get_cancel(); 1133}; 1134b.RadComboBox.prototype.raise_dropDownOpened=function(c){var d=new b.RadComboBoxEventArgs(c); 1135this.raiseEvent("dropDownOpened",d); 1136}; 1137b.RadComboBox.prototype.raise_dropDownOpening=function(c){var d=new b.RadComboBoxCancelEventArgs(c); 1138this.raiseEvent("dropDownOpening",d); 1139return d.get_cancel(); 1140}; 1141b.RadComboBox.prototype.raise_keyPressing=function(c){this.raiseEvent("keyPressing",c); 1142}; 1143b.RadComboBox.prototype.raise_onClientBlur=function(c){var d=new b.RadComboBoxEventArgs(c); 1144this.raiseEvent("onClientBlur",d); 1145}; 1146b.RadComboBox.prototype.raise_onClientFocus=function(c){var d=new b.RadComboBoxEventArgs(c); 1147this.raiseEvent("onClientFocus",d); 1148}; 1149b.RadComboBox.prototype.raise_onClientKeyPressing=function(c){var d=new b.RadComboBoxEventArgs(c); 1150this.raiseEvent("keyPressing",d); 1151}; 1152b.RadComboBox.prototype.raise_onItemChecking=function(f,c){var d=new b.RadComboBoxItemCancelEventArgs(f,c); 1153this.raiseEvent("itemChecking",d); 1154return d.get_cancel(); 1155}; 1156b.RadComboBox.prototype.raise_onItemChecked=function(f,c){var d=new b.RadComboBoxItemEventArgs(f,c); 1157this.raiseEvent("itemChecked",d); 1158}; 1159b.RadComboBox.prototype.raise_onCheckAllChecking=function(c){var d=a.extendEventArgs(new Sys.CancelEventArgs(),c); 1160return a.raiseCancellableControlEvent(this,"checkAllChecking",d); 1161}; 1162b.RadComboBox.prototype.raise_onCheckAllChecked=function(c){var d=a.extendEventArgs(new Sys.EventArgs(),c); 1163a.raiseControlEvent(this,"checkAllChecked",d); 1164}; 1165b.RadComboBox.prototype.raise_selectedIndexChanged=function(f,c){var d=new b.RadComboBoxItemEventArgs(f,c); 1166if(this.get_enableLoadOnDemand()&&$telerik.isIE&&f){this._cachedText=f.get_text(); 1167}this.raiseEvent("selectedIndexChanged",d); 1168}; 1169b.RadComboBox.prototype.raise_selectedIndexChanging=function(f,c){var d=new b.RadComboBoxItemCancelEventArgs(f,c); 1170this.raiseEvent("selectedIndexChanging",d); 1171return d.get_cancel(); 1172}; 1173b.RadComboBox.prototype.raise_textChange=function(c,d){var f=new b.RadComboBoxCancelEventArgs(d); 1174this.raiseEvent("textChange",f); 1175return f.get_cancel(); 1176}; 1177b.RadComboBox.prototype.remove_onClientKeyPressing=function(c){this.get_events().removeHandler("keyPressing",c); 1178}; 1179})(); 1180(function(){var a=$telerik.$,c=Telerik.Web.UI,b=Sys.Serialization.JavaScriptSerializer; 1181c.RadComboBox.prototype.get_checkedIndices=function(){return this._checkedIndices; 1182}; 1183c.RadComboBox.prototype.get_checkedItems=function(){var h=[],e,f=this.get_items(); 1184for(var d=0,g=f.get_count(); 1185d<g; 1186d++){e=this.get_items().getItem(d); 1187if(e!==null&&e.get_checked()){Array.add(h,e); 1188}}return h; 1189}; 1190c.RadComboBox.prototype.get_checkAllCheckBoxDivElement=function(){if(!this._checkAllElement){this._checkAllElement=a(this.get_dropDownElement()).find(".rcbCheckAllItems").get(0); 1191}return this._checkAllElement; 1192}; 1193c.RadComboBox.prototype.get_checkAllCheckBox=function(){if(!this._checkAllCheckBoxElement){this._checkAllCheckBoxElement=a(this.get_checkAllCheckBoxDivElement()).find(".rcbCheckAllItemsCheckBox").get(0); 1194}return this._checkAllCheckBoxElement; 1195}; 1196c.RadComboBox.prototype.enableCheckAllCheckBox=function(){a(this.get_checkAllCheckBox()).prop("disabled",fal
1196se); 1197}; 1198c.RadComboBox.prototype._initializeCheckBoxes=function(){this._updateCheckedIndices(true); 1199var e=this,d=a(this.get_checkAllCheckBoxDivElement()); 1200if(!this.get_isTemplated()){a(this.get_childListElement()).on("click","label",function(g){g.stopPropagation(); 1201e._onCheckBoxCheck(g); 1202}); 1203}a(this.get_dropDownElement()).delegate(".rcbCheckBox","click",function(g){e._onCheckBoxCheck(g); 1204}); 1205d.bind("click",function(g){e._onCheckAllItemsCheck(g); 1206}).bind("mouseover",function(g){e._onCheckAllHover(g); 1207}).bind("mouseout",function(g){e._onCheckAllOut(g); 1208}); 1209this._allChecked=(this.get_checkedItems().length==this.get_items().get_count()); 1210if(this._checkedItemsTexts==c.RadComboBoxCheckedItemsTexts.FitInInput){this._cachedInputWidth=this.get_inputDomElement().offsetWidth; 1211var f=this.get_text(); 1212if(f&&f!=this._emptyMessage){this._updateComboBoxText(); 1213}}if(this._checkAllElement&&this.get_enableAriaSupport()){d.find(".rcbCheckAllItemsCheckBox")[0].setAttribute("role","checkbox"); 1214d.attr("id",this.get_id()+"_checkAll"); 1215d.attr("role","listbox"); 1216}}; 1217c.RadComboBox.prototype._performCheck=function(g,f){if(this.raise_onItemChecking(g,f)){f.preventDefault(); 1218return; 1219}g.set_checked(!g.get_checked()); 1220this.raise_onItemChecked(g,f); 1221if(this._checkAllElement){this._updateCheckAllState(); 1222}if(this._postBackOnCheck){var d={Command:"Check",Index:g.get_index()}; 1223this.postback(d); 1224}}; 1225c.RadComboBox.prototype._onCheckBoxCheck=function(d){var g=$telerik.getTouchTarget(d),h=this._findNearestItem(g),f=h||this._extractItemFromDomElement(g); 1226if(g.nodeName=="LABEL"){d.preventDefault(); 1227}this._performCheck(f,d); 1228}; 1229c.RadComboBox.prototype._onCheckAllItemsCheck=function(h){var m=$telerik.getTouchTarget(h),k=this.get_items(),d={checked:this._allChecked,domEvent:h}; 1230if(m.nodeName=="LABEL"){h.preventDefault(); 1231}if(this.raise_onCheckAllChecking(d)){h.preventDefault(); 1232return; 1233}this._checkedIndices=[]; 1234this._allChecked=!this._allChecked; 1235for(var j=0,l=k.get_count(); 1236j<l; 1237j++){var g=this.get_items().getItem(j); 1238if(g.get_enabled()){g._setChecked(this._allChecked); 1239}}this._updateCheckAllState(); 1240this._updateCheckedIndices(); 1241this._updateComboBoxText(); 1242d.checked=this._allChecked; 1243this.raise_onCheckAllChecked(d); 1244if(this._postBackOnCheckAllCheck){var f={Command:"CheckAll",CheckAllChecked:this._allChecked}; 1245this.postback(f); 1246}}; 1247c.RadComboBox.prototype._onCheckAllHover=function(d){if(!this._enabled){return; 1248}var f=this.get_highlightedItem(); 1249if(f!==null){f.unHighlight(); 1250}this._checkAllElement.className="rcbCheckAllItemsHovered"; 1251}; 1252c.RadComboBox.prototype._onCheckAllOut=function(d){this._checkAllElement.className="rcbCheckAllItems"; 1253}; 1254c.RadComboBox.prototype._diposeCheckBoxes=function(){a(this.get_dropDownElement()).undelegate(".rcbCheckBox","click"); 1255a(this.get_childListElement()).off(); 1256a(this.get_checkAllCheckBoxDivElement()).unbind("click").unbind("mouseover").unbind("mouseout"); 1257this._checkAllCheckBoxElement=null; 1258this._checkAllElement=null; 1259}; 1260c.RadComboBox.prototype._updateCheckAllState=function(){var e=this.get_items(),f=e.get_count(),k=true,h=0,d=a(this.get_checkAllCheckBox()); 1261for(var j=0; 1262j<f; 1263j++){var g=e.getItem(j); 1264if(g.get_enabled()){if(!g.get_checked()){k=false; 1265break; 1266}h++; 1267}}if(h>0&&k){d.prop("checked",true); 1268this._allChecked=true; 1269}else{d.prop("checked",false); 1270this._allChecked=false; 1271}}; 1272c.RadComboBox.prototype._checkedItemsTextsFitInputWidth=function(d){var e=document.createElement("div"),f; 1273e.id="checkedItemTextsDiv"; 1274e.style.position="absolute"; 1275e.style.font="12px Segoe UI,Arial,sans-serif"; 1276e.style.top="-1000px"; 1277e.style.left="-1000px"; 1278e.innerHTML=""; 1279e.innerHTML=d; 1280document.body.appendChild(e); 1281f=this._cachedInputWidth>e.offsetWidth; 1282document.body.removeChild(e); 1283return f; 1284}; 1285c.RadComboBox.prototype._updateComboBoxText=function(){if(!this._checkBoxes){return; 1286}var l="",g=this.get_items(),h=g.get_count(),k=this.get_localization(); 1287for(var e=0,j=this.get_checkedIndices().length; 1288e<j; 1289e++){var f=this._children.getItem(this._checkedIndices[e]); 1290l+=f.get_text()+", "; 1291}var d=l.replace(/,$/,""); 1292d=d.substring(0,d.length-2); 1293if(this._checkedIndices.length==h&&h>0&&this._checkedItemsTexts==c.RadComboBoxCheckedItemsTexts.FitInInput){this.set_text(k.AllItemsCheckedString); 1294}else{if(this._checkedItemsTexts==c.RadComboBoxCheckedItemsTexts.FitInInput&&this._checkedIndices.length>1&&!this._checkedItemsTextsFitInputWidth(d)){this._checkedItemsTextOverflows=true; 1295this.set_text(this._checkedIndices.length+" "+k.ItemsCheckedString); 1296}else{if(h===0||this._checkedIndices.length===0){this.set_text(""); 1297this._applyEmptyMessage(); 1298}else{this._checkedItemsTextOverflows=false; 1299this.set_text(d); 1300}}}}; 1301c.RadComboBox.prototype._updateCheckedIndices=function(e){var g=this.get_items(); 1302this._checkedIndices=[]; 1303for(var d=0,h=g.get_count(); 1304d<h; 1305d++){var f=this.get_items().getItem(d); 1306if(f!==null&&f.get_checked()){this._checkedIndices[this._checkedIndices.length]=f.get_index(); 1307}}if(!(e&&this._checkedIndices.length===0)){this._updateCheckedIndicesJson(); 1308}}; 1309c.RadComboBox.prototype._updateCheckedIndicesJson=function(){this._checkedIndicesJson=b.serialize(this._checkedIndices); 1310this.updateClientState(); 1311}; 1312c.RadComboBox.prototype._registerCheckedIndex=function(d){if(Array.indexOf(this._checkedIndices,d)==-1){Array.add(this._checkedIndices,d); 1313this._updateCheckedIndicesJson(); 1314}}; 1315c.RadComboBox.prototype._unregisterCheckedIndex=function(d){Array.remove(this._checkedIndices,d); 1316this._updateCheckedIndicesJson(); 1317}; 1318c.RadComboBox.prototype._setOriginalTextWithCheckBoxes=function(){if(this.get_checkBoxes()){this._originalText=this._getTextWithCheckBoxes(); 1319}}; 1320c.RadComboBox.prototype._getTextWithCheckBoxes=function(){var g=""; 1321if(this.get_checkBoxes()){var f=this.get_checkedItems(),d=f.length; 1322for(var e=0; 1323e<d; 1324e++){g+=f[e].get_text()+", ";
1325}g=g.replace(/,$/,""); 1326g=g.substring(0,g.length-2); 1327}return g; 1328}; 1329})(); 1330(function(){var a=$telerik.$; 1331var b=Telerik.Web.UI; 1332b.RadComboBox.prototype.get_dropDownElement=function(){if(!this._dropDownElement){this._dropDownElement=this._getChildElement("DropDown"); 1333}return this._dropDownElement; 1334}; 1335b.RadComboBox.prototype.attachDropDown=function(){var c=this.get_dropDownElement().parentNode; 1336c.parentNode.removeChild(c); 1337this._view.get_wrapper().parentNode.appendChild(c); 1338}; 1339b.RadComboBox.prototype.showDropDown=function(){if(this._enabled){this._showDropDown(null); 1340}}; 1341b.RadComboBox.prototype.hideDropDown=function(){this._hideDropDown(null); 1342}; 1343b.RadComboBox.prototype.toggleDropDown=function(){if(this._enabled){this._toggleDropDown(null); 1344}}; 1345b.RadComboBox.prototype.get_childListElement=function(){if(!this._childListElement){if(this.get_simpleRendering()){this._childListElement=this.get_selectElement(); 1346}if(!this._childListElement){var c=this.get_childListElementWrapper(); 1347this._childListElement=$telerik.getFirstChildByTagName(c,"ul",0); 1348}}return this._childListElement; 1349}; 1350b.RadComboBox.prototype.get_childListElementWrapper=function(){if(!this._childListElementWrapper){var d=this.get_dropDownElement(); 1351var c=this._getHeaderElement()?1:0; 1352this._childListElementWrapper=$telerik.getFirstChildByTagName(d,"div",c); 1353}return this._childListElementWrapper; 1354}; 1355b.RadComboBox.prototype._initializeDropDown=function(){var c=this.get_childListElement(); 1356if(c){this._onDropDownClickDelegate=Function.createDelegate(this,this._onDropDownClick); 1357$telerik.addHandler(c,"click",this._onDropDownClickDelegate); 1358this._onDropDownHoverDelegate=Function.createDelegate(this,this._onDropDownHover); 1359$telerik.addHandler(c,"mouseover",this._onDropDownHoverDelegate); 1360this._cancelDelegate=Function.createDelegate(this,b.RadComboBox._cancelEvent); 1361$telerik.addHandler(c,"selectstart",this._cancelDelegate); 1362$telerik.addHandler(c,"dragstart",this._cancelDelegate); 1363this._onDropDownOutDelegate=Function.createDelegate(this,this._onDropDownOut); 1364$telerik.addHandler(c,"mouseout",this._onDropDownOutDelegate); 1365if($telerik.isIE8&&$telerik.standardsMode){c.style.position="absolute"; 1366c.style.width="100%"; 1367}}this._dummyHandlerDelegate=Function.createDelegate(this,this._dummyHandler); 1368a(this.get_childListElementWrapper()).click(this._dummyHandlerDelegate); 1369this._initializeDropDownAutoWidth(); 1370}; 1371b.RadComboBox.prototype._onDropDownClick=function(c){if(this._checkBoxes){if(a(c.target).attr("type")!="checkbox"){return; 1372}}if(this._skipItemSelection(c,null)){return; 1373}if(!this._enabled){return; 1374}var f=this._findNearestItem(c.target); 1375if(!f||!f.get_enabled()||f.get_isSeparator()){return; 1376}try{this.get_inputDomElement().focus(); 1377}catch(d){}this._performSelect(f,c); 1378this._hideDropDown(c); 1379if(!this.get_isTemplated()&&this.get_filter()!=b.RadComboBoxFilter.None&&c.stopPropagation){c.stopPropagation(); 1380}}; 1381b.RadComboBox.prototype._onDropDownHover=function(c){if(!this._enabled||this._ajaxRequest||this._collapsing){return; 1382}var d=this._findNearestItem(c.target); 1383if(!d||!d.get_enabled()||d.get_isSeparator()){return; 1384}d.highlight(); 1385}; 1386b.RadComboBox.prototype._onDropDownOut=function(c){if(!this._enabled){return; 1387}if(!c){c=event; 1388}var f=this._getRelatedTarget(c); 1389if(!f){return; 1390}while(f&&f.nodeType!==9){if(f.parentNode==this.get_dropDownElement()){return; 1391}f=f.parentNode; 1392}var d=this.get_highlightedItem(); 1393if(d){d.unHighlight(); 1394}}; 1395b.RadComboBox.prototype._dummyHandler=function(){}; 1396b.RadComboBox.prototype._detachDropDownEvents=function(){var c=this.get_childListElement(); 1397if(c){if(this._onDropDownClickDelegate){$telerik.removeHandler(c,"click",this._onDropDownClickDelegate); 1398}if(this._onDropDownHoverDelegate){$telerik.removeHandler(c,"mouseover",this._onDropDownHoverDelegate); 1399}if(this._onDropDownOutDelegate){$telerik.removeHandler(c,"mouseout",this._onDropDownOutDelegate); 1400}if(this._cancelDelegate){$telerik.removeHandler(c,"selectstart",this._cancelDelegate); 1401}if(this._cancelDelegate){$telerik.removeHandler(c,"dragstart",this._cancelDelegate); 1402}this._onDropDownClickDelegate=null; 1403this._onDropDownHoverDelegate=null; 1404this._onDropDownOutDelegate=null; 1405this._cancelDelegate=null; 1406}a(this.get_childListElementWrapper()).unbind("click",this._dummyHandlerDelegate); 1407this._dummyHandlerDelegate=null; 1408}; 1409b.RadComboBox.prototype._applyZIndex=function(){if(this.get_simpleRendering()){return; 1410}
1410var d=this.get_element().style.zIndex; 1411var c=this.get_dropDownElement().parentNode.style.zIndex; 1412if(!d){d=c; 1413}this.get_dropDownElement().parentNode.style.zIndex=d; 1414}; 1415b.RadComboBox.prototype._resizeDropDown=function(){if(this._isDropDownManualResizeRequired()){var f=30; 1416var c=a(this._dropDownElement); 1417var d=c.find(".rcbList"); 1418if(d.length){if($telerik.isIE7&&!$telerik.isIE9Mode||$telerik.isIE8){f=18; 1419}c.css("width",""); 1420if($telerik.isIE8){d.css("width",""); 1421}if($telerik.isIE7){d.css({width:"",position:"absolute"}); 1422}var e=d[0].offsetWidth; 1423if($telerik.isIE7){d.css({zoom:"1",position:"relative"}); 1424}c.css("width",(e+f)+"px"); 1425}}}; 1426b.RadComboBox.prototype._initializeDropDownAutoWidth=function(){if(this._dropDownAutoWidth==b.RadComboBoxDropDownAutoWidth.Enabled){a(this._dropDownElement).addClass("rcbAutoWidth"); 1427if(!this._isDropDownManualResizeRequired()){a(this._dropDownElement).addClass("rcbAutoWidthResizer"); 1428}}}; 1429b.RadComboBox.prototype._isDropDownManualResizeRequired=function(){if(this._dropDownAutoWidth==b.RadComboBoxDropDownAutoWidth.Enabled&&($telerik.isIE7||$telerik.isIE8||$telerik.isOpera)){return true; 1430}else{return false; 1431}}; 1432b.RadComboBox.prototype._showDropDown=function(f){var j=this; 1433var d=this.get_items().get_count(); 1434if(this.get_enableAriaSupport()){b.RadComboBox._toggleAttribute(this.get_inputDomElement(),"aria-expanded",true,true); 1435b.RadComboBox._toggleAttribute(this.get_childListElement(),"aria-hidden",false,true); 1436}if(this._firstOpeningOfDropDown){this._applyZIndex(); 1437if(b.TouchScrollExtender._getNeedsScrollExtender()&&!this._dropDownTouchScroll&&this.get_childListElementWrapper()){this._dropDownTouchScroll=new Telerik.Web.UI.TouchScrollExtender(this.get_childListElementWrapper()); 1438this._dropDownTouchScroll.initialize(); 1439}this._firstOpeningOfDropDown=false; 1440}this._toggleExpandedState(true); 1441this._highlightFirstMatch(); 1442if(this.raise_dropDownOpening(f)===true){return; 1443}var c=this._getAnimationContainer(); 1444if(!c){return; 1445}var i=this.get_text(); 1446if(this.get_emptyMessage()==this.get_text()){i=""; 1447}if(this.get_enableLoadOnDemand()&&d===0&&!this._skipLoadingItems){if(this._lodIsAutomatic){i=this.getLastWord(i,this._getTrimStartingSpaces()); 1448}if(i.length>=this._minFilterLength){this.requestItems(i,false); 1449}}else{if(this.get_isUsingODataSource()&&d===0){this.requestItems("",true); 1450}}this._skipLoadingItems=false; 1451try{this.get_inputDomElement().focus(); 1452}catch(g){}this._onFocus(f); 1453this.set_dropDownVisible(true); 1454this._dropDown.set_enableDirectionDetection((this.get_childListElement())?this._enableScreenBoundaryDetection:false); 1455var h; 1456if(this.get_items().get_count()===0){h=new b.RadComboBoxItem(); 1457h.set_text("measuring item"); 1458this.get_items().add(h); 1459}if(j._dropDown.isVisible()){j._dropDown.reflow(); 1460}else{j._setTimeout(function(){j._dropDown.show(); 1461},j.get_expandDelay()); 1462}this._resizeDropDown(); 1463if(h){this.get_items().remove(h); 1464}this.raise_dropDownOpened(f); 1465}; 1466b.RadComboBox.prototype._onOpened=function(){if($telerik.isIE8&&$telerik.standardsMode){a(this.get_childListElement()).css("position","relative"); 1467}this._adjustChildListElementHeight(); 1468if($telerik.isIE8&&$telerik.standardsMode){a(this.get_childListElement()).css("position","absolute"); 1469}this._resizeDropDown(); 1470}; 1471b.RadComboBox.prototype._onClosed=function(){this.set_dropDownVisible(false); 1472}; 1473b.RadComboBox.prototype._onReflowing=function(){this._dropDownScrollTop=a(this.get_childListElementWrapper()).scrollTop(); 1474a(this.get_childListElementWrapper()).height(""); 1475if($telerik.isIE8&&$telerik.standardsMode){a(this.get_childListElement()).css("position","relative"); 1476}}; 1477b.RadComboBox.prototype._onReflowed=function(){var c=a(this._dropDown._animationContainer); 1478this._adjustChildListElementHeight(); 1479if(!this._rightToLeft&&this._enableScreenBoundaryDetection){var d=this._dropDown._getAvailableSpace(); 1480var j=a(this.get_tableElement()).outerWidth(); 1481var e=c.outerWidth(); 1482var h=this.get_offsetX(); 1483var i=e-(j+d.right); 1484if(i>0){var f=parseInt(c.css("left"),10); 1485var g=Math.max(f-i,(f-h)-(e-j)); 1486c.css("left",g); 1487}}if($telerik.isIE8&&$telerik.standardsMode){a(this.get_childListElement()).css("position","absolute"); 1488}a(this.get_childListElementWrapper()).scrollTop(this._dropDownScrollTop); 1489this._resizeDropDown(); 1490}; 1491b.RadComboBox.prototype._adjustChildListElementHeight=function(){var c=a(this._dropDownElement); 1492var d=c.height(),f=c.find(".rcbHeader").outerHeight(true)||0,e=c.find(".rcbFooter").outerHeight(true)||0,g=c.find(".rcbMoreResults").outerHeight(true)||0,h; 1493if(d>0){h=d-(f+e+g); 1494a(this.get_childListElementWrapper()).outerHeight(h); 1495}},b.RadComboBox.prototype._hideDropDown=function(c){var d=this; 1496if(!this.get_dropDownVisible()){return; 1497}if(this.get_enableAriaSupport()){b.RadComboBox._toggleAttribute(this.get_inputDomElement(),"aria-expanded",false,true); 1498b.RadComboBox._toggleAttribute(this.get_childListElement(),"aria-hidden",true,true); 1499}this._toggleExpandedState(false); 1500if(this.raise_dropDownClosing(c)===true){return; 1501}this._collapsing=true; 1502if(!this._getAnimationContainer()){return; 1503}this.set_dropDownVisible(false); 1504this._setTimeout(function(){d._dropDown.hide(); 1505},this.get_collapseDelay()); 1506if(this.get_filter()!=b.RadComboBoxFilter.None){this._removeEmTagsFromAllItems(); 1507}this.raise_dropDownClosed(c); 1508}; 1509b.RadComboBox.prototype._toggleDropDown=function(c){if(this.get_dropDownVisible()){this._hideDropDown(c); 1510}else{this._showDropDown(c); 1511}}; 1512b.RadComboBox.prototype._detachDropDown=function(){var c=$telerik.isIE?document.readyState=="complete"||document.readyState=="interactive":true;
1513if(c&&(!this._isDetached)){var e=this._findParentForm()||document.body,d=this.get_dropDownElement(),f=d.parentNode; 1514f.parentNode.removeChild(f); 1515f.style.marginLeft="0"; 1516e.insertBefore(f,e.firstChild); 1517this._isDetached=true; 1518}}; 1519b.RadComboBox.prototype._findParentForm=function(){var c=this.get_element(); 1520while(c&&c.tagName&&c.tagName.toLowerCase()!="form"){c=c.parentNode; 1521}if(!c.tagName){c=null; 1522}return c; 1523}; 1524b.RadComboBox.prototype._setTimeout=function(c,d){clearTimeout(this._timeoutRef); 1525if(d===0){c(); 1526}else{this._timeoutRef=setTimeout(c,d); 1527}},b.RadComboBox.prototype._skipItemSelection=function(d,f){var h=d.target; 1528if(h.nodeType==3){return false; 1529}var g=h.tagName.toLowerCase(); 1530var c=h.className; 1531if(g=="select"){return true; 1532}if(g=="option"){return true; 1533}if(g=="a"&&(!f||c.indexOf(f)<0)){return true; 1534}if(g=="input"){return true; 1535}if(g=="textarea"){return true; 1536}if(g=="button"){return true; 1537}return false; 1538}; 1539})(); 1540(function(a){var b=Telerik.Web.UI; 1541b.RadComboBox.prototype.get_expandAnimation=function(){return this._expandAnimation; 1542}; 1543b.RadComboBox.prototype.set_expandAnimation=function(d){var c=Sys.Serialization.JavaScriptSerializer.deserialize(d); 1544this._expandAnimation=new b.AnimationSettings(c); 1545}; 1546b.RadComboBox.prototype.get_collapseAnimation=function(){return this._collapseAnimation; 1547}; 1548b.RadComboBox.prototype.set_collapseAnimation=function(d){var c=Sys.Serialization.JavaScriptSerializer.deserialize(d); 1549this._collapseAnimation=new b.AnimationSettings(c); 1550}; 1551b.RadComboBox.prototype.get_slideDirection=function(){return this.get_expandDirection(); 1552}; 1553b.RadComboBox.prototype.set_slideDirection=function(c){this.set_expandDirection(c); 1554}; 1555b.RadComboBox.prototype._initializeAnimation=function(){this._dropDown=new b.DropDown(this._getAnimatedElement().parentNode,{direction:this.get_expandDirection(),expandAnimation:this.get_expandAnimation(),collapseAnimation:this.get_collapseAnimation(),enableOverlay:this._enableOverlay,enableScreenBoundaryDetection:this._enableScreenBoundaryDetection,anchor:this.get_tableElement(),width:this._dropDownWidth||((this._dropDownAutoWidth===b.RadComboBoxDropDownAutoWidth.Enabled)?"":"auto"),height:this._height||"",maxHeight:this._maxHeight,rtl:$telerik.isRightToLeft(this.get_element()),offsetX:this.get_offsetX(),offsetY:this.get_offsetY()}); 1556this._dropDown.on({expandAnimationStarted:this._onAnimationStarted,collapseAnimationStarted:this._onAnimationStarted,expandAnimationEnded:this._onAnimationEnded,collapseAnimationEnded:this._onAnimationEnded,opened:this._onOpened,closed:this._onClosed,reflowing:this._onReflowing,reflowed:this._onReflowed},this); 1557this._dropDown.initialize(); 1558this._dropDown.updateSize(); 1559}; 1560b.RadComboBox.prototype._getAnimatedElement=function(){if(!this._animatedElement){this._animatedElement=this.get_dropDownElement(); 1561}return this._animatedElement; 1562}; 1563b.RadComboBox.prototype._getAnimationContainer=function(){if(!this._animationContainer){if(this.get_dropDownElement()){this._animationContainer=this.get_dropDownElement().parentNode; 1564}}return this._animationContainer; 1565}; 1566b.RadComboBox.prototype._resetAnimatedElementPosition=function(){var c=this._getAnimatedElement(); 1567c.style.top="0px"; 1568c.style.left="0px"; 1569}; 1570b.RadComboBox.prototype._onAnimationEnded=function(d,c){this._collapsing=false; 1571if(window.netscape&&!window.opera){this.get_childListElementWrapper().style.overflow="auto"; 1572}if($telerik.isChrome){a(this.get_dropDownElement()).css("-webkit-transform","translatez(0)").css("-webkit-transform",""); 1573}}; 1574b.RadComboBox.prototype._onAnimationStarted=function(f,c){if(window.netscape&&!window.opera){this.get_childListElementWrapper().style.overflow="hidden"; 1575}if(this.get_dropDownVisible()){var d=this.get_highlightedItem(); 1576if(d){d.scrollOnTop(); 1577}}}; 1578b.RadComboBox.prototype._disposeAnimation=function(){if(this._dropDown){this._dropDown.dispose(); 1579this._dropDown=null; 1580}}; 1581})($telerik.$); 1582(function(){var a=$telerik.$; 1583var b=Telerik.Web.UI; 1584b.RadComboBox.prototype._createFakeInput=function(){var c=a("<input class='rcbFakeInput radPreventDecorate' tabindex='-1' />").css({border:0,padding:0,margin:0,position:"absolute",zIndex:1,backgroundColor:"transparent"})[0]; 1585return c; 1586}; 1587b.RadComboBox.prototype._deployFakeInput=function(){if(this.get_element
1587().currentStyle.position=="static"){this.get_element().style.position="relative"; 1588}this._fakeInput=this._createFakeInput(); 1589var c=this.get_inputDomElement(); 1590a(this._fakeInput).appendTo(c.parentNode); 1591}; 1592b.RadComboBox.prototype._repaintFakeInput=function(){var d=this.get_element(); 1593var g=0; 1594var f=0; 1595var h=0; 1596var e=0; 1597if(d.style.width.indexOf("%")==-1){var m=this.get_inputDomElement(); 1598var n=a(m).position(); 1599if(m.offsetWidth>0){f=m.offsetHeight; 1600h=n.top; 1601e=n.left; 1602g=m.offsetWidth; 1603}else{var o=d.cloneNode(false); 1604o.style.position="absolute"; 1605o.style.top="-1000px"; 1606o.style.left="-1000px"; 1607var c=d.cloneNode(true).childNodes; 1608for(var j=0; 1609j<c.length; 1610j++){if(c[j].tagName){if(c[j].tagName.toUpperCase()=="LABEL"){o.appendChild(c[j]); 1611}if(c[j].tagName.toUpperCase()=="TABLE"){o.appendChild(c[j]); 1612}}}document.body.appendChild(o); 1613var k=a(o).find(".rcbInput").get(0); 1614var l=a(o).find("label").get(0); 1615g=k.offsetWidth; 1616f=k.offsetHeight; 1617h=k.offsetTop; 1618if(l){e=k.offsetLeft+l.offsetWidth; 1619}else{e=k.offsetLeft; 1620}document.body.removeChild(o); 1621}}a(this._fakeInput).css({width:g,height:f,top:h,left:e}); 1622}; 1623})(); 1624(function(){var a=Telerik.Web.UI; 1625a.RadComboBox.prototype.highlightAllMatches=function(f){if(this.get_filter()==a.RadComboBoxFilter.None){return; 1626}if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); 1627}var d=this.getLastWord(f,this._getTrimStartingSpaces()); 1628if(this._getLastSeparator(f)==f.charAt(f.length-1)){this._removeEmTagsFromAllItems(); 1629this.setAllItemsVisible(true); 1630return; 1631}var c=this.get_filter(),b=function(h,g,i){var j=h.highlightText(g,i); 1632h.set_visible(j); 1633},e=function(){if(this.get_markFirstMatch()){this.highlightFirstVisibleEnabledItem(); 1634}this._resizeDropDown(); 1635}; 1636this._process(0,c,d,b,e); 1637}; 1638a.RadComboBox.prototype.setAllItemsVisible=function(b){var c=b;
1639this.get_items().forEach(function(d){d.set_visible(c); 1640}); 1641}; 1642a.RadComboBox.prototype._removeEmTagsFromAllItems=function(){this.get_items().forEach(function(b){b.clearEmTags(); 1643}); 1644}; 1645a.RadComboBox.prototype._process=function(g,d,f,b,h){var i=this,e=this.get_items(),c=e.get_count(); 1646clearTimeout(this._filterTimer); 1647this._filterTimer=setTimeout(function(){var j=g,l=new Date().getTime(),k; 1648while(j<c&&(new Date().getTime()-l)<i._filterDuration){k=e._array[j]; 1649b.apply(i,[k,d,f]); 1650j++; 1651}if(j<c){i._process(j,d,f,b,h); 1652}else{h.apply(i); 1653}},10); 1654}; 1655})(); 1656(function(){var b=Telerik.Web.UI; 1657var e=1; 1658var c="rcbCheckAllItems"; 1659var d="rcbCheckAllItemsHovered"; 1660var a=$telerik.$; 1661b.RadComboBox.prototype.highlightItem=function(h,k){var j=this.get_highlightedItem(),n=this.get_visibleItems(),p=n.length,q=0,g,o,r,m=this.get_checkBoxes()&&this._enableCheckAllItemsCheckBox,f; 1662if(m){f=a(this._checkAllElement); 1663}if(!j){if(m&&!f.hasClass(d)){this._toggleCheckAllHighlight(true); 1664return; 1665}if(m&&f.hasClass(d)&&!k){return; 1666}else{if(this._checkAllElement){this._toggleCheckAllHighlight(false); 1667}}j=this.get_selectedItem(); 1668}if(j){for(var l=0; 1669l<p; 1670l++){if(n[l]==j){q=k?l+1:l-1; 1671break; 1672}}}g=h.call(this,q,p,arguments[2]); 1673if(m&&g==-1&&!f.hasClass(d)){j.unHighlight(); 1674this._toggleCheckAllHighlight(true); 1675return; 1676}if(g>=0&&g<p){n[g].highlight(); 1677n[g].scrollIntoView(); 1678o=this._getLastSeparatorIndex(this.get_text()); 1679r=this.get_text().substring(0,o+1)+n[g].get_text(); 1680if(this.get_changeText()&&!this._checkBoxes){this.set_text(r); 1681this.set_value(n[g].get_value()); 1682}}}; 1683b.RadComboBox.prototype._toggleCheckAllHighlight=function(f){if(f){this._applyCheckAllHighlight(f,d,c); 1684}else{this._applyCheckAllHighlight(f,c,d); 1685}}; 1686b.RadComboBox.prototype._applyCheckAllHighlight=function(h,g,i){var f=a(this._checkAllElement); 1687f.addClass(g); 1688f.removeClass(i); 1689if(this.get_enableAriaSupport()){b.RadComboBox._toggleActiveDescendantAttributes(f.find(".rcbCheckAllItemsCheckBox")[0],this.get_id(),h); 1690}}; 1691b.RadComboBox.prototype.highlightNextItem=function(g){var h=this; 1692var f=function(l,j,k){var i=h._findNextAvailableIndex(l,j,k); 1693if(k&&i==j){i=h._findNextAvailableIndex(0,j,k); 1694}return i; 1695}; 1696h.highlightItem(f,true,g); 1697}; 1698b.RadComboBox.prototype.highlightPreviousItem=function(){var g=this; 1699var f=function(h){return g._findPrevAvailableIndex(h); 1700}; 1701g.highlightItem(f,false); 1702}; 1703b.RadComboBox.prototype.highlightLastItem=function(){var g=this; 1704var f=function(j,h,i){return g.get_items().get_count()-1; 1705}; 1706g.highlightItem(f,true); 1707}; 1708b.RadComboBox.prototype.highlightFirstItem=function(){var f=function(g){return 0; 1709}; 1710this.highlightItem(f,false); 1711}; 1712b.RadComboBox.prototype.highlightLastVisibleItem=function(){var l=a(this.get_dropDownElement()).find("div.rcbScroll"); 1713var j=this.get_items(); 1714var h=-1; 1715for(var g=j.get_count()-1; 1716g>=0; 1717g--){var k=a(j.getItem(g).get_element()).position().top; 1718if(k<l.scrollTop()+l.height()){h=j.getItem(g).get_index(); 1719break; 1720}}if(h>=0){var f=function(n,i,m){return h; 1721}; 1722this.highlightItem(f,true); 1723}}; 1724b.RadComboBox.prototype.highlightFirstVisibleItem=function(){var l=a(this.get_dropDownElement()).find("div.rcbScroll"); 1725var j=this.get_items(); 1726var h=-1; 1727for(var g=0; 1728g<j.get_count(); 1729g++){var k=a(j.getItem(g).get_element()).position().top; 1730if(k>l.scrollTop()){h=j.getItem(g).get_index(); 1731break; 1732}}if(h>=0){var f=function(n,i,m){return h-1; 1733}; 1734this.highlightItem(f,true); 1735}}; 1736b.RadComboBox.prototype._needsItemCompletion=function(){var g=this._getInputSelectionRange(); 1737var f=this._getSurroundingSeparatorIndices(g.start).before; 1738var h=f; 1739var i=this.get_text(); 1740var j=i.substring(h,i.length); 1741if(this.findItemByText(j)===null){return false; 1742}return true; 1743}; 1744b.RadComboBox.prototype._isCommandKey=function(f){for(var g in Telerik.Web.UI.Keys){if(g!="Numpad0"&&g!="Numpad9"&&g!="Zero"&&g!="Del"&&g!="Space"){if(f==Telerik.Web.UI.Keys[g]){return true; 1745}}}return false; 1746}; 1747b.RadComboBox.prototype._onKeyUpIE=function(f){var g=f.keyCode||f.which; 1748if(!this._isCommandKey(g)&&!this.get_readOnly()){this._onChangeHelper(f); 1749}}; 1750b.RadComboBox.prototype._onKeyDown=function(h){var j=h.keyCode||h.which,i,k,f=8; 1751if(($telerik.isIE||$telerik.isChrome)&&this.get_readOnly()&&j==f){h.preventDefault(); 1752}if($telerik.isIE&&j!=b.Keys.Down&&j!=b.Keys.Up){this._updateFilterText=true; 1753}if(j==b.Keys.Escape){h.preventDefault(); 1754}if(!this._fireEvents||this._ajaxRequest){return; 1755}this.raise_onClientKeyPressing(h); 1756this._lastKeyCode=j; 1757switch(j){case b.Keys.Left:case b.Keys.Righ:return; 1758case b.Keys.Escape:this._hideDropDown(h); 1759if($telerik.isFirefox){this._escKeyPressed=true; 1760}return; 1761case b.Keys.Enter:this._hideDropDown(h); 1762h.returnValue=true; 1763if(h.preventDefault){h.preventDefault(); 1764}this._onEnterKey(h); 1765return; 1766case b.Keys.Down:h.returnValue=false; 1767if(h.altKey){this._toggleDropDown(h); 1768return; 1769}this.highlightNextItem(null); 1770if(h.preventDefault){h.preventDefault(); 1771}return; 1772case b.Keys.Up:h.returnValue=false; 1773if(h.altKey){this._toggleDropDown(h); 1774return; 1775}this.highlightPreviousItem(); 1776if(h.preventDefault){h.preventDefault(); 1777}return; 1778case b.Keys.Home:h.returnValue=false; 1779if(h.altKey){this._toggleDropDown(h); 1780return; 1781}if(this.get_inputDomElement().readOnly){this.highlightFirstItem(); 1782if(h.preventDefault){h.preventDefault(); 1783}}return; 1784case b.Keys.End:h.returnValue=false; 1785if(h.altKey){this._toggleDropDown(h); 1786return; 1787}if(this.get_inputDomElement().readOnly){this.highlightLastItem(); 1788if(h.preventDefault){h.preventDefault(); 1789}}return; 1790case b.Keys.PageDown:h.returnValue=false; 1791if(h.altKey){this._toggleDropDown(h); 1792return; 1793}var l=a(this.get_dropDownElement()).find("div.rcbScroll"); 1794l.scrollTop(l.scrollTop()+l.height()); 1795this.highlightLastVisibleItem(); 1796if(h.preventDefault){h.preventDefault(); 1797}return; 1798case b.Keys.PageUp:h.returnValue=false; 1799if(h.altKey){this._toggleDropDown(h); 1800return; 1801}var l=a(this.get_dropDownElement()).find("div.rcbScroll"); 1802l.scrollTop(l.scrollTop()-l.height()); 1803this.highlightFirstVisibleItem(); 1804if(h.preventDefault){h.preventDefault(); 1805}return; 1806case b.Keys.Tab:this._hideDropDown(h); 1807this._raiseClientBlur(h); 1808this._selectItemOnBlur(h); 1809this._applyEmptyMessage(); 1810this._focused=false; 1811return; 1812case b.Keys.Space:if(this.get_dropDownVisible()){i=this.get_highlightedItem();
1813if(this._checkBoxes&&i){if(h.preventDefault){h.preventDefault(); 1814}this._performCheck(i,h); 1815}else{if(this._checkBoxes&&!i&&this._checkAllElement&&a(this._checkAllElement).hasClass(d)){a(this._checkAllElement).click(); 1816}}}return; 1817}if(j>=b.Keys.Numpad0&&j<=b.Keys.Numpad9){j-=(b.Keys.Numpad0-b.Keys.Zero); 1818}k=String.fromCharCode(j); 1819if(k&&(!h.altKey)&&!(this.get_enableLoadOnDemand()||!this.get_readOnly())){if(this.get_readOnly()&&this._dropDown.isVisible()==false){this._inputDomElement.setAttribute("aria-live","polite"); 1820}this.highlightNextItem(k); 1821if(this.get_readOnly()&&this._dropDown.isVisible()==false){var g=this; 1822setTimeout(function(){g._inputDomElement.setAttribute("aria-live","off"); 1823},50); 1824}return; 1825}}; 1826b.RadComboBox.prototype._onEnterKey=function(g){var i=this.findItemByText(this.get_text()),j=this.get_selectedItem(),h=this.get_highlightedItem(); 1827if(!this._checkBoxes){if(this.get_allowCustomText()&&!this.get_markFirstMatch()&&!i){if(this.raise_selectedIndexChanging(null,g)===false){if(j){j.set_selected(false); 1828}if(h){h.unHighlight(); 1829}this.set_selectedItem(null); 1830this.set_selectedIndex(null); 1831this.set_highlightedItem(null); 1832this.raise_selectedIndexChanged(null,g); 1833var f={Command:"Select",Index:-1}; 1834this.postback(f); 1835}}else{this._performSelect(h,g); 1836}if(this.get_markFirstMatch()){var k=this.get_text().length; 1837this.selectText(k,k); 1838}}else{if(h&&!h.get_checked()){this._performCheck(h,g); 1839}}}; 1840b.RadComboBox.prototype._onKeyPressCheckSelection=function(f){var i=this.get_inputDomElement(),l=this._getInputSelection(i),m=this.get_text(),j,h; 1841if(l.selectionStart!=l.selectionEnd&&this.get_highlightedItem()){if(!this.get_isCaseSensitive()){j=(i.value.charAt(l.selectionStart).toLowerCase()==String.fromCharCode(f.keyCode).toLowerCase()); 1842}else{j=(i.value.charAt(l.selectionStart).toString()==String.fromCharCode(f.keyCode).toString()); 1843}if(j){h=this.findFirstMatch(m.substring(0,l.selectionStart)+String.fromCharCode(f.keyCode).toString()); 1844if(h&&h.get_text()===this.get_highlightedItem().get_text()){if(this.get_inputDomElement().setSelectionRange){this.get_inputDomElement().setSelectionRange(l.selectionStart+e,l.selectionEnd); 1845}else{var k=i.createTextRange(); 1846k.moveStart("character",l.selectionStart+e); 1847try{k.select(); 1848}catch(g){}}f.preventDefault(); 1849}}}}; 1850b.RadComboBox.prototype._onKeyPress=function(g){if(!this._fireEvents){return; 1851}var f=g.charCode||g.keyCode; 1852if(this._ajaxRequest){if(f===b.Keys.Enter){g.returnValue=false; 1853if(g.preventDefault){g.preventDefault(); 1854}}return; 1855}var j=[b.Keys.PageUp,b.Keys.PageDown,b.Keys.End,b.Keys.Home,b.Keys.Insert,b.Keys.Delete]; 1856for(var h=0; 1857h<j.length; 1858h++){if(this._lastKeyCode==j[h]){return; 1859}}if((this.get_markFirstMatch())&&(this.get_autoCompleteSeparator())&&(this.get_autoCompleteSeparator()===String.fromCharCode(f))&&(this._needsItemCompletion())){this._performSelect(this.get_highlightedItem(),g); 1860if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); 1861}var k=this.get_text().length; 1862this.selectText(k,k); 1863}}; 1864b.RadComboBox.prototype._findNextAvailableIndex=function(k,f,j){var h=this.get_visibleItems(); 1865for(var g=k; 1866g<f; 1867g++){if(h[g].get_enabled()&&!h[g].get_isSeparator()){if(j===null){return g; 1868}if(j&&!h[g].get_text().toLowerCase().indexOf(j.toLowerCase())){return g; 1869}}}return h.length; 1870}; 1871b.RadComboBox.prototype._findPrevAvailableIndex=function(g){var h=this.get_visibleItems(); 1872if(h.length<1){return -1; 1873}for(var f=g; 1874f>=0; 1875f--){if(h[f].get_enabled()&&!h[f].get_isSeparator()){return f; 1876}}return -1; 1877}; 1878})(); 1879(function(){var b=Telerik.Web.UI,a=Sys.Serialization.JavaScriptSerializer,c={0:"contains",1:"contains",2:"startswith"}; 1880b.RadComboBox.prototype.get_itemData=function(){return this._itemData; 1881}; 1882b.RadComboBox.prototype.get_webServiceSettings=function(){return this._webServiceSettings; 1883}; 1884b.RadComboBox.prototype.set_webServiceSettings=function(e){var d=a.deserialize(e); 1885if(d.ODataSettings){this._webServiceSettings=new b.NavigationControlODataSettings(d); 1886}else{this._webServiceSettings=new b.WebServiceSettings(d); 1887}}; 1888b.RadComboBox.prototype.get_enableItemCaching=function(){return this._enableItemCaching; 1889}; 1890b.RadComboBox.prototype.set_enableItemCaching=function(d){this._enableItemCaching=d; 1891}; 1892b.RadComboBox.prototype.get_moreResultsBoxElement=function(){var d=this._getChildElement("MoreResultsBox"); 1893return d; 1894}; 1895b.RadComboBox.prototype.get_moreResultsBoxMessageElement=function(){var d=this.get_moreResultsBoxElement(); 1896var e=$telerik.getFirstChildByTagName(d,"span",0); 1897return e; 1898}; 1899b.RadComboBox.prototype.clearCache=function(){this.lodHashTable={}; 1900},b.RadComboBox.prototype.requestItems=function(g,d){if(this._disposed){return; 1901}var h={},f;
1902if(d){if((this._pendingAjaxRequestsCount>0)||this.get_endOfItems()){return; 1903}}else{this._filterText=g; 1904}this._ensureChildControls(); 1905this._ajaxRequest=true; 1906this.set_appendItems(d); 1907h.Text=g; 1908h.NumberOfItems=0; 1909if(this.get_appendItems()){h.NumberOfItems=this.get_items().get_count(); 1910}f=new b.RadComboBoxRequestCancelEventArgs(g,h); 1911this.raiseEvent("itemsRequesting",f); 1912if(f.get_cancel()){this._ajaxRequest=false; 1913return; 1914}if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); 1915}if(!this._loadingDiv){this._loadingDiv=document.createElement("li"); 1916this._loadingDiv.className="rcbLoading"; 1917this._loadingDiv.id=this.get_id()+"_LoadingDiv"; 1918this._loadingDiv.innerHTML=this.get_loadingMessage(); 1919if(!this.get_childListElement()){this._createChildListElement(); 1920}this.get_childListElement().insertBefore(this._loadingDiv,this.get_childListElement().firstChild); 1921}g=encodeURIComponent(g); 1922this._callbackText=g; 1923this._pendingAjaxRequestsCount++; 1924var e=this.get_isUsingODataSource()||this.get_webServiceSettings().get_isOData(); 1925if(this.get_webServiceSettings().get_method()||e){this._doLoadOnDemandFromWebService(g,h); 1926}else{if(this._clientDataSource){this._doLoadOnDemandFromClientDataSource(h); 1927}else{this._doLoadOnDemand(g,h); 1928}}}; 1929b.RadComboBox.prototype._createChildListElement=function(){var d=document.createElement("ul"); 1930d.className="rcbList"; 1931this.get_childListElementWrapper().appendChild(d); 1932this._onDropDownClickDelegate=Function.createDelegate(this,this._onDropDownClick); 1933$telerik.addHandler(this.get_childListElement(),"click",this._onDropDownClickDelegate); 1934this._onDropDownHoverDelegate=Function.createDelegate(this,this._onDropDownHover); 1935$telerik.addHandler(this.get_childListElement(),"mouseover",this._onDropDownHoverDelegate); 1936this._cancelDelegate=Function.createDelegate(this,b.RadComboBox._cancelEvent); 1937$telerik.addHandler(this.get_childListElement(),"selectstart",this._cancelDelegate); 1938$telerik.addHandler(this.get_childListElement(),"dragstart",this._cancelDelegate); 1939this._onDropDownOutDelegate=Function.createDelegate(this,this._onDropDownOut); 1940$telerik.addHandler(this.get_childListElement(),"mouseout",this._onDropDownOutDelegate); 1941if($telerik.isIE8&&$telerik.standardsMode){d.style.position="absolute"; 1942d.style.width="100%"; 1943}if(this.get_enableAriaSupport()){this._applyChildListElementAttributes(); 1944}return d; 1945}; 1946b.RadComboBox.prototype._initializeVirtualScroll=function(){this._onDropDownScrollDelegate=Function.createDelegate(this,this._onDropDownScroll); 1947$telerik.addHandler(this.get_childListElementWrapper(),"scroll",this._onDropDownScrollDelegate); 1948}; 1949b.RadComboBox.prototype._onDropDownScroll=function(f){if(!this._virtualScroll||this._ajaxRequest||this.get_endOfItems()){return; 1950}var d=this.get_childListElement(),g=$telerik.getFirstChildByTagName(d,"div",0); 1951if(g){var h=g.offsetHeight; 1952if(this.get_childListElementWrapper().scrollTop+h>=d.offsetHeight-h){this.requestItems(this._filterText,true); 1953}}}; 1954b.RadComboBox.prototype._detachVirtualScrollEvents=function(){$telerik.removeHandler(this.get_childListElementWrapper(),"scroll",this._onDropDownScrollDelegate); 1955}; 1956b.RadComboBox.prototype._initializeMoreResultsBox=function(){var d=this.get_moreResultsBoxElement(); 1957this._onMoreResultsBoxClickDelegate=Function.createDelegate(this,this._onMoreResultsBoxClick); 1958$telerik.addHandler(d,"click",this._onMoreResultsBoxClickDelegate); 1959this._onMoreResultsBoxOverDelegate=Function.createDelegate(this,this._onMoreResultsBoxOver); 1960$telerik.addHandler(d,"mouseover",this._onMoreResultsBoxOverDelegate); 1961this._onMoreResultsBoxOutDelegate=Function.createDelegate(this,this._onMoreResultsBoxOut); 1962$telerik.addHandler(d,"mouseout",this._onMoreResultsBoxOutDelegate); 1963}; 1964b.RadComboBox.prototype._onMoreResultsBoxClick=function(d){this.requestItems(this._filterText,true); 1965}; 1966b.RadComboBox.prototype._onMoreResultsBoxOver=function(d){this.get_moreResultsBoxElement().style.cursor="pointer"; 1967}; 1968b.RadComboBox.prototype._onMoreResultsBoxOut=function(d){this.get_moreResultsBoxElement().style.cursor="default"; 1969}; 1970b.RadComboBox.prototype._detachMoreResultsBoxEvents=function(){var d=this.get_moreResultsBoxElement(); 1971$telerik.removeHandler(d,"click",this._onMoreResultsBoxClickDelegate); 1972$telerik.removeHandler(d,"mouseover",this._onMoreResultsBoxOverDelegate); 1973$telerik.removeHandler(d,"mouseout",this._onMoreResultsBoxOutDelegate); 1974}; 1975b.RadComboBox.prototype._initializeWebServiceLoader=function(){var d=this.get_webServiceSettings(); 1976if(d.get_isOData()){this._webServiceLoader=new b.NavigationControlODataLoader(this.get_webServiceSettings()); 1977}else{this._webServiceLoader=new b.WebServiceLoader(this.get_webServiceSettings()); 1978}this._webServiceLoader.add_loadingSuccess(Function.createDelegate(this,this._onWebServiceResponse)); 1979this._webServiceLoader.add_loadingError(Function.createDelegate(this,this._onWebServiceError)); 1980}; 1981b.RadComboBox.prototype._initializeODataSourceBinder=function(){var e=this.get_odataClientSettings().ODataSourceID,d=$find(e);
1982if(!d){var f=String.format("DataSource with id {0} was not found on the page",e); 1983alert(f); 1984}else{this._flatBinder=new b.RadODataDataSource.Binder.Flat(d,this); 1985this._flatBinder.initialize(); 1986}}; 1987b.RadComboBox.prototype._initializeClientDataSource=function(){if(this._clientDataSourceID){var d=$find(this._clientDataSourceID); 1988this._reinitializeClientDataSource(d); 1989}Sys.Application.remove_load(this._cdInitDelegate); 1990}; 1991b.RadComboBox.prototype._reinitializeClientDataSource=function(d){this._clientDataSource=d; 1992}; 1993b.RadComboBox.prototype._disposeODataSourceBinder=function(){if(this._flatBinder){this._flatBinder.dispose(); 1994}}; 1995b.RadComboBox.prototype._onDataNeeded=function(k){var l=this,e=l.get_items().get_count(),h=l.get_filter(),g=l.get_odataClientSettings().DataTextField,f=c[h],i=l._itemsPerRequest,d=l.get_appendItems(),j={events:{requesting:function(m){var n=m.get_options(); 1996n.context={filterText:k,itemsCount:e,shouldAppendItem:d}; 1997if(k){m.set_filterExpressions({field:g,operator:f,value:k}); 1998}if(i!=-1){n.data.take=i; 1999}if(d){n.data.skip=e; 2000}},success:function(m,o,n){var p=m,q=p.length,r=n.shouldAppendItem?n.itemsCount+q:q,u=o,s=new b.WebServiceLoaderSuccessEventArgs(p,n.filterText); 2001l.set_endOfItems(r==u); 2002l._onWebServiceResponse(l,s); 2003if(l._showMoreResultsBox){var t=l._getShowMoreMessage(1,r,u); 2004l.set_showMoreMessage(t); 2005l._updateMoreResultsBox(); 2006}},fail:function(m){var n=new b.WebServiceLoaderErrorEventArgs(m.get_message());
2007l._onWebServiceError(l,n); 2008}}}; 2009l._flatBinder.fetch(j); 2010}; 2011b.RadComboBox.prototype._getShowMoreMessage=function(d,e,f){return String.format("Items <b>{0}</b>-<b>{1}</b> out of <b>{2}</b>",d,e,f); 2012},b.RadComboBox.prototype.get_flatModel=function(){var d=this.get_odataClientSettings(); 2013return b.RadODataDataSource.Binder.Flat.Model(d); 2014},b.RadComboBox.prototype._doLoadOnDemand=function(j,k){var g=0; 2015if(this.get_appendItems()){g=this.get_items().get_count(); 2016}var f={Command:"LOD",Text:j,ClientState:this._clientState,Context:k,NumberOfItems:g}; 2017var h=Function.createDelegate(this,this._onCallbackResponse); 2018var i=Function.createDelegate(this,this._onErrorReceived); 2019if(this.get_enableItemCaching()&&this.lodHashTable[j+"$"+g]!==undefined){this._onCallbackResponse(this.lodHashTable[j+"$"+g]); 2020}else{var e=new b.CallbackSettings({id:this._uniqueId,arguments:a.serialize(f),onCallbackSuccess:h,context:j,onCallbackError:i,isAsync:true}); 2021var d=new b.CallbackLoader(e); 2022d.invokeCallbackMethod(); 2023}}; 2024b.RadComboBox.prototype._doLoadOnDemandFromWebService=function(g,h){if(!this._webServiceLoader){this._initializeWebServiceLoader(); 2025}var e={context:h},f=this.get_webServiceSettings(); 2026if(f.get_isOData()){e.isRootLevel=true; 2027}if(f.get_isWcf()){e.context=this._webServiceLoader._serializeDictionaryAsKeyValuePairs(e.context); 2028}var d=h.NumberOfItems; 2029if(this.get_enableItemCaching()&&this.lodHashTable[g+"$"+d]!==undefined){this._pendingAjaxRequestsCount--; 2030this._addNewItems(g,this.lodHashTable[g+"$"+d]); 2031}else{if(this.get_isUsingODataSource()){this._onDataNeeded(g); 2032}else{this._webServiceLoader.loadData(e,g); 2033}}}; 2034b.RadComboBox.prototype._doLoadOnDemandFromClientDataSource=function(g){var e=this._clientDataSource,f=this; 2035if(this.get_enableItemCaching()){var d=this.lodHashTable[g.Text+"$"+g.NumberOfItems]; 2036if(d!==undefined){this._pendingAjaxRequestsCount--; 2037this._addNewItems(g.Text,d); 2038return; 2039}}if(e.get_data().length===0){e.fetch(function(h){f._loadItemsFromClientDataSource(g); 2040}); 2041}else{f._loadItemsFromClientDataSource(g); 2042}}; 2043b.RadComboBox.prototype._loadItemsFromClientDataSource=function(l){this._pendingAjaxRequestsCount--; 2044var e=this._clientDataSource,g=this,j=this._itemsPerRequest,i=true,k; 2045if(l.Text){var f,d=Telerik.Web.UI.ClientDataSource.FilterOperator; 2046if(this.get_filter()==Telerik.Web.UI.RadComboBoxFilter.Contains){f=d.Contains; 2047}else{f=d.StartsWith; 2048}e.get_filterExpressions().clear(); 2049e.get_filterExpressions().add([{fieldName:this._dataTextField,value:l.Text,operator:f}]); 2050}else{e.get_filterExpressions().clear(); 2051}if(j!=-1){e.set_allowPaging(true); 2052e.set_pageSize(j); 2053var h=l.NumberOfItems/j; 2054e.set_currentPageIndex(h); 2055}e.fetch(function(){k=e.view(); 2056i=(e._kendoDataSource.totalPages()==(h+1)); 2057g.set_endOfItems(i); 2058g._addNewItems(l.Text,{Items:k,EndOfItems:i}); 2059}); 2060}; 2061b.RadComboBox.prototype._onCallbackResponse=function(q){if(this._disposed){return; 2062}this._pendingAjaxRequestsCount--; 2063this.set_selectedItem(null); 2064this.set_highlightedItem(null); 2065var m=this._children.get_count(); 2066var l=0; 2067var o=q.split("_$$_")[4]; 2068var g=window.encodeURI(this._callbackText); 2069function p(u,i,t){return u.replace(new RegExp(i,"g"),t); 2070}g=p(g,"'",window.escape("'")); 2071g=p(g,"~",window.escape("~")); 2072o=p(o,"%7e",window.escape("~")); 2073if((this._pendingAjaxRequestsCount===0)&&(o!=g)){this.requestItems(this._callbackText,this.get_appendItems()); 2074return; 2075}if(this.get_appendItems()){l=this.get_items().get_count(); 2076}if(this.get_enableItemCaching()&&this.lodHashTable[o+"$"+l]===undefined){this.lodHashTable[o+"$"+l]=q; 2077}var r=q.split("_$$_"); 2078var n; 2079if(r[0]=="[]"){n=null; 2080}else{n=eval(r[0]); 2081}if(r[3]=="True"){this.set_endOfItems(true); 2082}else{this.set_endOfItems(false); 2083}if(this.get_appendItems()&&this._itemData&&n){Array.addRange(this._itemData,n); 2084}else{this._itemData=n; 2085}if(this._loadingDiv){if(this._loadingDiv.parentNode){this._loadingDiv.parentNode.removeChild(this._loadingDiv); 2086}this._loadingDiv=null; 2087}var e=this.get_childListElement(); 2088if(!e){e=this._createChildListElement(); 2089}this._childControlsCreated=true; 2090var f=$telerik.getFirstChildByTagName(e,"div",0); 2091if(f){f.parentNode.removeChild(f); 2092}if(this.get_appendItems()){var s=document.createElement("ul"); 2093s.innerHTML=r[1]; 2094var d=$telerik.getChildrenByTagName(s,"li"); 2095var k=d.length; 2096for(var h=0; 2097h<k; 2098h++){e.appendChild(d[h]); 2099this._childControlsCreated=false; 2100var j=new b.RadComboBoxItem(); 2101this._children.add(j); 2102j._initialize(n[h],d[h]); 2103}}else{this._children.clear(); 2104e.innerHTML=r[1]; 2105this._childControlsCreated=false; 2106this._createChildControls(); 2107}this._childControlsCreated=true;
2108this._restoreSelectionAfterRequest(); 2109this.set_showMoreMessage(r[2]); 2110this._setUpDropDownAfterRequest(this.get_text(),e,m); 2111}; 2112b.RadComboBox.prototype._onWebServiceResponse=function(g,d){this._pendingAjaxRequestsCount--; 2113var f=d.get_data(); 2114var h=d.get_context(); 2115var e=0; 2116if(this.get_appendItems()){e=this.get_items().get_count(); 2117}if((this._pendingAjaxRequestsCount===0)&&(h!=this._callbackText)){this.requestItems(this._callbackText,this.get_appendItems()); 2118return; 2119}if(this.get_enableItemCaching()){this.lodHashTable[h+"$"+e]=f; 2120}this._addNewItems(h,f); 2121}; 2122b.RadComboBox.prototype._addNewItems=function(s,r){this.set_selectedItem(null); 2123this.set_highlightedItem(null); 2124this._childControlsCreated=true; 2125var p=this.get_items().get_count(); 2126if(this._loadingDiv){if(this._loadingDiv.parentNode){this._loadingDiv.parentNode.removeChild(this._loadingDiv); 2127}this._loadingDiv=null; 2128}if(!this.get_appendItems()){this.clearItems(); 2129}var e=this.get_childListElement(); 2130if(!e){e=this._createChildListElement(); 2131}if(this._virtualScroll){this._setUpScroll(true,e); 2132}var n=null; 2133if(Array.prototype.isPrototypeOf(r)){n=r; 2134}else{n=r.Items; 2135this.set_endOfItems(r.EndOfItems); 2136this.set_showMoreMessage(r.Message); 2137}n=n||[]; 2138this._childControlsCreated=false; 2139var t=this.get_webServiceSettings().get_isWcf(); 2140var j=[]; 2141var l; 2142var k,o; 2143for(k=0,o=n.length; 2144k<o; 2145k++){l=new b.RadComboBoxItem(); 2146var f=n[k]; 2147if(this._clientDataSource){l._loadFromCustomDictionary(f,{dataTextField:this._dataTextField,dataValueField:this._dataValueField}); 2148}else{l._loadFromDictionary(f,t); 2149}l._renderedClientTemplate=b.TemplateRenderer.renderTemplate(f,this,l); 2150this._children.add(l); 2151l._render(j); 2152}this._childControlsCreated=true; 2153if(this.get_appendItems()){e.innerHTML=e.innerHTML+j.join(""); 2154}else{e.innerHTML=j.join(""); 2155}var q=this.get_events().getHandler("itemDataBound"); 2156var d=$telerik.getChildrenByTagName(e,"li"); 2157for(k=0,o=this._children.get_count(); 2158k<o; 2159k++){l=this._children.getItem(k); 2160l.set_element(d[k]); 2161var h=o-n.length; 2162if((k>=h)&&q){var g=k-h; 2163var m=new b.RadComboBoxItemDataBoundEventArgs(l,n[g]); 2164this.raiseEvent("itemDataBound",m); 2165}}this._restoreSelectionAfterRequest(); 2166this._setUpDropDownAfterRequest(s,e,p); 2167}; 2168b.RadComboBox.prototype._scrollToTheNextPortionOfItems=function(d){if(this.get_appendItems()&&(this.get_items().getItem(d+1))){this.get_items().getItem(d+1).scrollIntoView(); 2169}}; 2170b.RadComboBox.prototype._setUpDropDownAfterRequest=function(h,e,g){if(this._virtualScroll){this._setUpScroll(this.get_endOfItems(),e); 2171}this._scrollToTheNextPortionOfItems(g); 2172this._updateMoreResultsBox(); 2173var d=$telerik.$(e); 2174if(!this._height&&!this._maxHeight&&!$telerik.isIE8){d.parents(".rcbScroll")[0].style.height=""; 2175}this.raise_itemsRequested(h,null); 2176if(this.get_filter()==b.RadComboBoxFilter.None){this.highlightMatches(); 2177}else{var f=this.get_highlightedItem(); 2178this.highlightAllMatches(this._filterText); 2179if(f){f.highlight(); 2180}}if(this.get_dropDownVisible()){this._skipDropDownPositioning=true; 2181if(this._slide){this._slide.updateSize(); 2182}this._skipDropDownPositioning=null; 2183this._dropDown.reflow(); 2184this._adjustChildListElementHeight(); 2185}this._resizeDropDown(); 2186if(this._maxHeight){this._scrollToTheNextPortionOfItems(g); 2187}this._ajaxRequest=false; 2188}; 2189b.RadComboBox.prototype._updateMoreResultsBox=function(){if(this._showMoreResultsBox&&this.get_moreResultsBoxMessageElement()){this.get_moreResultsBoxMessageElement().innerHTML=this.get_showMoreMessage(); 2190}},b.RadComboBox.prototype._setUpScroll=function(f,d){var e; 2191if(f){e=$telerik.getFirstChildByTagName(d,"div",0); 2192if(e){e.parentNode.removeChild(e); 2193}}else{e=document.createElement("div"); 2194if(!this._height&&this._maxHeight){e.style.height=this._maxHeight+"px"; 2195}else{e.style.height=this._height+"px"; 2196}d.appendChild(e); 2197}}; 2198b.RadComboBox.prototype._onErrorReceived=function(d,f){if(this._requestTimeoutID>0){window.clearTimeout(this._requestTimeoutID); 2199this._requestTimeoutID=0; 2200}var e=this._extractErrorMessage(d); 2201if(this.raise_itemsRequestFailed(f,e,null)){return; 2202}alert(e); 2203}; 2204b.RadComboBox.prototype._onWebServiceError=function(f,e){var d=e.get_message(),g=e.get_context(); 2205this._onErrorReceived(d,g); 2206}; 2207b.RadComboBox.prototype._restoreSelectionAfterRequest=function(){var d=this.findItemByValue(this.get_value()); 2208if(d&&d.get_enabled()&&(!d.get_isSeparator())){d.set_selected(true); 2209d.highlight(); 2210this.set_selectedItem(d); 2211}}; 2212})(); 2213(function(){var a=Telerik.Web.UI; 2214a.RadComboBox.prototype.get_markFirstMatch=function(){return this._markFirstMatch; 2215}; 2216a.RadComboBox.prototype.set_markFirstMatch=function(b){this._markFirstMatch=b; 2217this.repaint(); 2218}; 2219a.RadComboBox.prototype.findFirstMatch=function(f){if(!f){return null; 2220}var c=this.get_items(),d=c.get_count(); 2221for(var b=0; 2222b<d; 2223b++){if(c.getItem(b).get_text().length<f.length){continue; 2224}if(c.getItem(b).get_enabled()===false||c.getItem(b).get_isSeparator()){continue; 2225}var e=c.getItem(b).get_text().substring(0,f.length); 2226if(!this.get_isCaseSensitive()){if(e.toLowerCase()==f.toLowerCase()){return c.getItem(b); 2227}}else{if(e==f){return c.getItem(b); 2228}}}return null; 2229}; 2230a.RadComboBox.prototype.highlightMatches=function(){if(!this.get_markFirstMatch()){return; 2231}var j=this.get_text(); 2232var d=this.getLastWord(j,this._getTrimStartingSpaces()); 2233var c; 2234if(this._getLastSeparator(j)==j.charAt(j.length-1)){return; 2235}var e=this.findFirstMatch(d); 2236if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); 2237}if(!e){if(j&&!this.get_allowCustomText()&&!this.get_enableLoadOnDemand()){c=this._getLastSeparatorIndex(j); 2238if(c<j.length-1){var h=j.substring(0,j.length-1); 2239if(h===""&&$telerik.isSafari){var f=this; 2240window.setTimeout(function(){f.set_text(h); 2241},0); 2242}else{this.set_text(h); 2243this.highlightMatches(); 2244}}}return; 2245}e.highlight(); 2246e.scrollOnTop(); 2247this.set_value(e.get_value()); 2248var i; 2249var b; 2250var g; 2251c=this._getLastSeparatorIndex(j); 2252g=j.substring(0,c+1)+e.get_text(); 2253if(j!=g){this.set_text(g); 2254i=c+d.length+1; 2255b=g.length-i; 2256}else{if(this._callbackText.length>0){i=c+this._callbackText.length+1; 2257b=j.length-i; 2258}}if(i&&b){this.selectText(i,b); 2259}}; 2260a.RadComboBox.prototype.highlightFirstVisibleEnabledItem=function(){if(this.get_text().length>0){var d=this.get_visibleItems(); 2261var e=d.length; 2262for(var c=0; 2263c<e; 2264c++){var b=d[c]; 2265if(b.get_enabled()===true){b.highlight(); 2266return; 2267}}}}; 2268a.RadComboBox.prototype._shouldHighlight=function(){if(this._lastKeyCode<a.Keys.Space){return false;
2269}if((this._lastKeyCode>=a.Keys.PageUp)&&(this._lastKeyCode<=a.Keys.Del)){return false; 2270}if((this._lastKeyCode>=a.Keys.F1)&&(this._lastKeyCode<=a.Keys.F12)){return false; 2271}if(this._lastKeyCode==a.Keys.Delete){return false; 2272}return true; 2273}; 2274})(); 2275(function(){var a=Telerik.Web.UI; 2276a.RadComboBox.prototype.get_selectedIndex=function(){var b=this.get_selectedItem(); 2277if(b){return b.get_index(); 2278}return this._selectedIndex; 2279}; 2280a.RadComboBox.prototype.set_selectedIndex=function(b){this._selectedIndex=b; 2281}; 2282a.RadComboBox.prototype.get_selectedItem=function(){if(!this._setSelectedItem){this._setSelectedItem=true; 2283this._setFirstSelectedItem(); 2284}return this._selectedItem; 2285}; 2286a.RadComboBox.prototype.set_selectedItem=function(b){this._selectedItem=b; 2287}; 2288a.RadComboBox.prototype.clearSelection=function(){this.set_text(""); 2289this.set_value(""); 2290this.set_selectedItem(null); 2291var b=this.get_highlightedItem(); 2292if(b){b.unHighlight(); 2293}this._applyEmptyMessage(); 2294}; 2295a.RadComboBox.prototype._performSelect=function(d,c){if(d&&d!=this.get_selectedItem()&&!this.get_enableLoadOnDemand()){d._select(c); 2296return; 2297}if(d&&d==this.get_selectedItem()&&this.getLastWord(this.get_text())!=d.get_text()&&!this.get_readOnly()){this._appendTextAfterLastSeparator(d.get_text()); 2298return; 2299}if(d&&d==this.get_selectedItem()){if(this.get_markFirstMatch()){if(d.get_text()!=this.get_text()||d.get_value()!=this.get_value()){d._select(c); 2300}}return; 2301}if(d&&this.get_originalText()!=d.get_text()){d._select(c); 2302return; 2303}if(d&&(!this.get_selectedItem()||this.get_selectedItem().get_value()!=d.get_value())){d._select(c); 2304return; 2305}if((this.get_allowCustomText()||this.get_enableLoadOnDemand())&&this._shouldPostbackOnChange()&&!this._checkBoxes){if(this.get_highlightedItem()){this.get_highlightedItem().unHighlight(); 2306}if(this.raise_textChange(this,c)===true){return; 2307}var b={Command:"TextChanged"}; 2308this.postback(b); 2309}}; 2310a.RadComboBox.prototype._selectItemOnBlur=function(c){if(this.get_emptyMessage()&&(this.get_text()==this.get_emptyMessage())){return; 2311}var h,f=null; 2312if(this.get_markFirstMatch()===true&&this.get_filter()==a.RadComboBoxFilter.None&&this.get_allowCustomText()===false&&this.get_enableLoadOnDemand()===false&&this.get_emptyMessage()&&this.get_autoCompleteSeparator()){h=this.get_lastWord(); 2313}if(this._checkBoxes){if(this.get_filter()!=a.RadComboBoxFilter.None){this.setAllItemsVisible(true); 2314}return; 2315}f=this._findItemToSelect(h); 2316if(f===null&&this._defaultItem!==null&&(this.get_text()===""||this.get_text()==this._defaultItem.get_text())){f=this._defaultItem; 2317}var d=!this.get_enableLoadOnDemand()&&!this.get_allowCustomText(); 2318if(!f&&d&&(this.get_items().get_count()>0)){if(this.get_filter()!=a.RadComboBoxFilter.None){f=this.get_selectedItem(); 2319if(!f){this.set_text(""); 2320}else{this.set_text(f.get_text()); 2321this.set_value(f.get_value()); 2322}}else{if(this.get_markFirstMatch()&&!this.get_emptyMessage()){if(this.get_text()===""){this.set_text(this._originalText); 2323}this.highlightMatches(); 2324this.selectText(0,0); 2325f=this.get_highlightedItem(); 2326}}}if(this.get_filter()!=a.RadComboBoxFilter.None){this.setAllItemsVisible(true); 2327}if(!f){var g=this.get_selectedItem(); 2328if(g&&!d){if(this.raise_selectedIndexChanging(null,c)===true){this.set_text(g.get_text()); 2329return; 2330}g.set_selected(false); 2331this.set_selectedItem(null); 2332this.set_selectedIndex(null); 2333this.raise_selectedIndexChanged(null,c); 2334var b={Command:"Select",Index:-1}; 2335this.postback(b); 2336return; 2337}if(g&&d){f=g; 2338}}this._performSelect(f,c); 2339}; 2340})(); 2341(function(){var a=$telerik.$; 2342var b=Telerik.Web.UI; 2343b.RadComboBox.prototype.get_selectElement=function(){return a(this.get_element()).find("select").get(0); 2344}; 2345b.RadComboBox.prototype.get_selectElementText=function(){var c=this.get_selectElement(); 2346var d=""; 2347if(c.options.length&&c.selectedIndex>-1){d=c.options[c.selectedIndex].text; 2348}return d; 2349}; 2350b.RadComboBox.prototype.get_selectedOption=function(){var c=this.get_selectElement(); 2351if(c.options.length&&c.selectedIndex>-1){return c.options[c.selectedIndex]; 2352}return null; 2353}; 2354b.RadComboBox.prototype.get_simpleRendering=function(){if(!this._simpleRendering){this._simpleRendering=false; 2355}else{return this._simpleRendering; 2356}
2356if(a(this.get_element()).find("select").length>0&&this.get_inputDomElement()===null){this._simpleRendering=true; 2357}return this._simpleRendering; 2358}; 2359b.RadComboBox.prototype._initializeSelect=function(){var c=this; 2360a(this.get_selectElement()).bind("change",function(d){c._onSelectChange(d,c); 2361}); 2362}; 2363b.RadComboBox.prototype._onSelectChange=function(c,d){var f=c.target.options[c.target.selectedIndex]; 2364d._ensureChildControls(); 2365d._performSelect(f._item,c); 2366}; 2367b.RadComboBox.prototype._disposeSelect=function(){a(this.get_selectElement()).unbind("change"); 2368}; 2369})(); 2370(function(b,a){b.RadComboBoxDefaultItem=function(){b.RadComboBoxDefaultItem.initializeBase(this); 2371}; 2372b.RadComboBoxDefaultItem.prototype={_select:function(d){if(!this.get_isEnabled()||this.get_isSeparator()){return; 2373}var c=this.get_comboBox(); 2374var h=c.get_text(),f=c._getLastSeparatorIndex(h),i=h.substring(0,f+1)+this.get_text(),g=c.get_selectedItem(); 2375if(g){g.set_selected(false); 2376}c.clearSelection(); 2377c.get_inputDomElement().value=i; 2378c._element.value=this.get_value(); 2379c.set_value(this.get_value()); 2380this.set_selected(true); 2381this.highlight(); 2382}}; 2383b.RadComboBoxDefaultItem.registerClass("Telerik.Web.UI.RadComboBoxDefaultItem",b.RadComboBoxItem); 2384})(Telerik.Web.UI,$telerik.$);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.