protected override void CreateChildElements()
        {
            base.CreateChildElements();

            stackLayout             = new StackLayoutPanel();
            stackLayout.Orientation = System.Windows.Forms.Orientation.Horizontal;

            non_timed_option          = new RadRadioButtonElement();
            non_timed_option.Text     = "Non-Timed Session";
            non_timed_option.Margin   = new Padding(5, 3, 0, 0);
            non_timed_option.MouseUp += Non_timed_option_MouseUp;

            timed_option          = new RadRadioButtonElement();
            timed_option.Text     = "Timed Session";
            timed_option.Margin   = new Padding(5, 3, 0, 0);
            timed_option.MouseUp += Timed_option_MouseUp;


            duration               = new RadSpinEditorElement();
            duration.Value         = 50;
            duration.MaxValue      = 999;
            duration.MinValue      = 1;
            duration.AutoSize      = false;
            duration.Size          = new Size(50, 30);
            duration.Margin        = new Padding(5, 5, 0, 0);
            duration.Visibility    = ElementVisibility.Hidden;
            duration.ValueChanged += Duration_ValueChanged;

            stackLayout.Children.Add(non_timed_option);
            stackLayout.Children.Add(timed_option);
            stackLayout.Children.Add(duration);

            this.Children.Add(this.stackLayout);
        }
 public RadGridSpinEditorElementAccessibleObject(
     RadGridView owner,
     RadSpinEditorElement editor,
     CellAccessibleObject parent,
     Size size,
     Point location,
     string name)
     : base((Control)owner)
 {
     this.location = location;
     this.size     = size;
     this.name     = name;
     this.owner    = owner;
     this.parent   = parent;
     this.editor   = editor;
 }
        void grid_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            GridSpinEditor editor = e.ActiveEditor as GridSpinEditor;

            if (editor != null)
            {
                this.GridControl.CellEditorInitialized -= grid_CellEditorInitialized;
                RadSpinEditorElement element = editor.EditorElement as RadSpinEditorElement;

                if (Updown)
                {
                    element.ButtonUp.PerformClick();
                }
                else
                {
                    element.ButtonDown.PerformClick();
                }
            }
        }