ASPxClientProgressBar = _aspxCreateClass(ASPxClientEditBase, {
 constructor: function(name) {
  this.constructor.prototype.constructor.call(this, name);
  this.sizingConfig.adjustControl = true;
 },
 InlineInitialize: function() {
  var progressBar = this.GetProgressBar();
  progressBar.mainElement = this.GetMainElement();
  progressBar.InlineInitialize(true );
  ASPxClientEditBase.prototype.InlineInitialize.call(this);
 },
 AdjustControlCore: function() {
  ASPxClientEditBase.prototype.AdjustControlCore.call(this); 
  this.GetProgressBar().AdjustControlCore();
 },
 GetProgressBar: function() {
  return window[this.name + "_MC"];
 },
 ChangeEnabledStateItems: function(enabled){
  aspxGetStateController().SetElementEnabled(this.GetMainElement(), enabled);
  var valueIndicatorCell = this.GetProgressBar().GetValueIndicatorCell();
  if(valueIndicatorCell)
   aspxGetStateController().SetElementEnabled(valueIndicatorCell, enabled);
 },
 SetPosition: function(position) {
  this.GetProgressBar().SetPosition(position);
 },
 GetPosition: function() {
  return this.GetProgressBar().GetPosition();
 },
 GetPercent: function() {
  return this.GetProgressBar().GetPercent();
 },
 SetValue: function(value) {
  this.SetPosition(value);
 },
 GetValue: function() {
  return this.GetPosition();
 }
 });
