ASPxClientGaugeControl = _aspxCreateClass(ASPxClientControl, {
 constructor: function(name) {
  this.constructor.prototype.constructor.call(this, name);
  this.allowMultipleCallbacks = false;
 },
 OnCallback: function(result) {
  var gaugeImage = this.GetMainElement();
  if(_aspxIsExists(gaugeImage)){
   gaugeImage.setAttribute("src",result);
  }
 },
 DoBeginCallback: function(command){
  this.ShowLoadingPanel(); 
  ASPxClientControl.prototype.DoBeginCallback.call(this, command);
 },
 DoEndCallback: function(){
  ASPxClientControl.prototype.DoEndCallback.call(this);
  this.HideLoadingPanel();  
 },
 ShowLoadingPanel: function() {
  var gaugeImage = this.GetMainElement();
  this.CreateLoadingPanelWithAbsolutePosition(gaugeImage.parentNode, gaugeImage); 
 },
 PerformCallback: function(parameter) {
  this.CreateCallback(parameter);
 }
});
