(function () { ASPxClientCallback = ASPx.CreateClass(ASPxClient, { constructor: function (name) { this.constructor.prototype.constructor.call(this, name); this.hideContentOnCallback = true; this.isLoadingTextEmpty = false; }, OnCallback: function (result) { ASPx.SetInnerHtml(this.getContentElement(), result); if(this.touchUIScroller) this.touchUIScroller.ChangeElement(this.getContentElement()); }, ShowLoading: function () { var element = this.getContentElement(); var mainElement = (element.tagName == "TD") ? this.GetMainElement() : element; if(!this.hideContentOnCallback) this.CreateLoadingWithAbsolutePosition(this.GetMainElement().parentNode, mainElement); else this.CreateLoadingInsideContainer(element, true, true, false); }, ShowLoadingDiv: function () { this.CreateLoadingDiv(this.GetMainElement().parentNode, this.getContentElement()); }, GetCallbackAnimationElement: function() { return this.getContentElement(); }, PerformCallback: function (parameter, onSuccess) { this.CreateCallback(parameter, null, null, onSuccess); }, CreateCallback: function (arg, command, callbackInfo, handler) { this.ShowLoadingElements(); ASPxClientControl.prototype.CreateCallback.call(this, arg, command, handler); }, GetLoadingTextLabelID: function () { return this.name + "_TL"; }, GetLoadingTextLabel: function () { return ASPx.GetElementById(this.GetLoadingTextLabelID()); }, GetLoadingText: function () { var textLabel = this.GetLoadingTextLabel(); if(textLabel & !this.isLoadingTextEmpty) return textLabel.innerHTML; return ""; }, SetLoadingText: function (text) { this.isLoadingTextEmpty = text == null || text == ""; var textLabel = this.GetLoadingTextLabel(); if(textLabel) textLabel.innerHTML = this.isLoadingTextEmpty ? " " : text; }, SetContentHtml: function (html, useAnimation) { ASPxClient.prototype.SetContentHtml.call(this, html); if(useAnimation & typeof(ASPx.AnimationHelper) != "undefined") ASPx.AnimationHelper.fadeIn(this.getContentElement()); } }); ASPxClientCallback.Cast = ASPxClientControl.Cast; window.ASPxClientCallback = ASPxClientCallback; })(); 4m4g5p