ASPxClientRecurrenceTypeEdit = _aspxCreateClass(ASPxClientRadioButtonList, {
 constructor: function(name) {
  this.constructor.prototype.constructor.call(this, name);
 },
 InlineInitialize: function() {
  ASPxClientRadioButtonList.prototype.InlineInitialize.call(this);
  this.recurrenceType = this.GetRecurrenceType();
 },
 RaiseSelectedIndexChanged: function(processOnServer) {
  this.recurrenceType = this.GetRecurrenceType();
  ASPxClientRadioButtonList.prototype.RaiseSelectedIndexChanged.call(this, processOnServer); 
 },
 GetRecurrenceType: function() {
  var index = this.GetSelectedIndex();
  switch(index) {
   case 0:
    return ASPxClientRecurrenceType.Daily;
   case 1:
    return ASPxClientRecurrenceType.Weekly;
   case 2:
    return ASPxClientRecurrenceType.Monthly;
   case 3:
    return ASPxClientRecurrenceType.Yearly;
   case 4:
    return ASPxClientRecurrenceType.Minutely;
   case 5:
    return ASPxClientRecurrenceType.Hourly;
  }
  return null;
 },
 SetRecurrenceType: function(recurrenceType) {
  var selectedIndex = 0;
  switch(recurrenceType) {
   case ASPxClientRecurrenceType.Daily:
    selectedIndex = 0;
    break;
   case ASPxClientRecurrenceType.Weekly:
    selectedIndex = 1;
    break;
   case ASPxClientRecurrenceType.Monthly:
    selectedIndex = 2;
    break;
   case ASPxClientRecurrenceType.Yearly:
    selectedIndex = 3;
    break;
   case ASPxClientRecurrenceType.Minutely:
    selectedIndex = 4;
    break;
   case ASPxClientRecurrenceType.Hourly:
    selectedIndex = 5;
    break;
  }
  this.SetSelectedIndex(selectedIndex);
 }
});
