Пример #1
0
        protected override RadElement CreateEditorElement()
        {
            BaseDateTimeEditorElement editorElement = (BaseDateTimeEditorElement)base.CreateEditorElement();

            editorElement.Format       = DateTimePickerFormat.Custom;
            editorElement.CustomFormat = "f";
            return((RadElement)editorElement);
        }
Пример #2
0
        protected override RadElement CreateEditorElement()
        {
            BaseDateTimeEditorElement timeEditorElement = new BaseDateTimeEditorElement();
            RadDateTimePickerCalendar currentBehavior   = timeEditorElement.GetCurrentBehavior() as RadDateTimePickerCalendar;

            if (currentBehavior != null)
            {
                currentBehavior.Calendar.ShowFooter = true;
                timeEditorElement.CalendarSize      = new Size(200, 200);
            }
            return((RadElement)timeEditorElement);
        }
Пример #3
0
        protected override RadElement CreateEditorElement()
        {
            BaseDateTimeEditorElement editor           = new BaseDateTimeEditorElement();
            RadDateTimePickerCalendar calendarBehavior = editor.GetCurrentBehavior() as RadDateTimePickerCalendar;

            if (calendarBehavior != null)
            {
                calendarBehavior.Calendar.ShowFooter = true;
                editor.CalendarSize = new Size(200, 200);
            }

            return(editor);
        }