ASPxClientPanel = _aspxCreateClass(ASPxClientControl, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.touchUIScroller = null; }, Initialize: function(){ this.touchUIScroller = ASPxClientTouchUI.makeScrollableIfRequired(this.GetMainElement()); }, GetContentElement: function() { return this.GetMainElement(); }, GetContentHTML: function(){ return this.GetContentHtml(); }, SetContentHTML: function(html){ this.SetContentHtml(html); }, GetContentHtml: function(){ if(this.touchUIScroller) this.touchUIScroller.destroy(); var contentElement = this.GetContentElement(); contentHtml = _aspxIsExistsElement(contentElement) ? contentElement.innerHTML : null; if(this.touchUIScroller) this.touchUIScroller.ChangeElement(this.GetMainElement()); return contentHtml; }, SetContentHtml: function(html){ var contentElement = this.GetContentElement(); if (_aspxIsExistsElement(contentElement)) _aspxSetInnerHtml(contentElement, html); if(this.touchUIScroller) this.touchUIScroller.ChangeElement(this.GetMainElement()); } }); ASPxClientPanel.Cast = ASPxClientControl.Cast;