Telerik Forums
UI for WinForms Forum
1 answer
107 views

Hey,

I want to make available just the 1st and the 15th of a month.

How can I get this?

 

Regards

Dimitar
Telerik team
 answered on 02 Oct 2018
1 answer
720 views

Greetings,

I want the RadTimePicker to show only Time value , not date. How to do that ?

 

Thanks


Hristo
Telerik team
 answered on 19 Sep 2018
4 answers
198 views

Hello Telerik Team !

I currently try to achieve something similar to the attached picture.

Maybe I took the wrong direction, by using a MaskedEditBox with a DateTime MaskType, I am trying to add an adjacent button picture to open a calendar, and also a drop down button with several standard choice.

By editing UI Elements I notice the presence of a StackLayoutPanel with LightVisualButtonElement, I put both Visibility to Visible and add a little calendar icon image.

I can see It on Visual Studio, but the icon does not appear when I launch the program, and also I don't have any idea what kind of event I need to add if I succeed in showing the icon to open a calendar control to select my date.

So maybe I took a wrong direction by using this controls ?

Any help or suggestion would be highly welcome

 

Thanks in adavnce

 

Jeff

Jeff
Top achievements
Rank 1
 answered on 18 Sep 2018
4 answers
254 views

Hello Telerik Team,

 I'm using RadDateTimePicker with TelerikMetroBlueTheme. And I showed timePickerElement.

In dropDown of dateTimePicker, I found that theme of timePicker showing default theme.

How to change theme of timePicker ?

 

 

     

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Sep 2018
0 answers
130 views

Hey guys, I've inherited RadDateTimePicker to do a better handling of null value with databinding and the problem is when it got focused by Tab key it borders don't change as it should be. Ive tried setting focus to DateTimePickerElement when my picker got focus, but it didn't solve as well. 

 

 public partial class NossoRadDateTimePicker : RadDateTimePicker
    {
        public NossoRadDateTimePicker()
        {
            InitializeComponent();
            TabStop = true;
            this.ValueChanged += NossoRadDateTimePicker_ValueChanged;
            this.GotFocus += NossoRadDateTimePicker_GotFocus;
        }

        private void NossoRadDateTimePicker_GotFocus(object sender, EventArgs e)
        {
            base.DateTimePickerElement.Focus();
        }

        private void NossoRadDateTimePicker_ValueChanged(object sender, EventArgs e)
        {
            if (ShowCheckBox && checking == false)
                this.Checked = true;

        }

        [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new DateTime? NullableValue
        {
            get
            {
                throw new Exception("Use Value");
            }
            set
            {
                throw new Exception("Use Value");
            }
        }

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        /// <summary>
        /// Poderá retornar null caso use o checkbox e ele não esteja checkado
        /// </summary>
        public new DateTime? Value
        {
            get
            {
                DateTime? valor = base.Value;

                if (ShowCheckBox && Checked == false)
                    valor = null;

                return valor;
            }
            set
            {
                //garantir que essa bosta n sete valor fora do range de datas
                if (value != null)
                {
                    value = value > MaxDate ? MaxDate : value;
                    value = value < MinDate ? MinDate : value;
                    Checked = true;
                }
                else if (ShowCheckBox)
                    Checked = false;

                checking = true;
                base.Value = value ?? DateTime.Now;
                checking = false;

            }
        }

        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyData == Keys.Space)
            {
                this.Checked = !this.Checked;
            }
            else
            {
                base.OnKeyDown(e);

            }
        }

        bool checking;
    }

Leandro
Top achievements
Rank 1
 asked on 05 Sep 2018
7 answers
578 views
Hi, I was trying to add the RadDateTime picker to the ribbon bar programmatically by doing:

 
 

RadDateTimePickerElement dtPicker = new RadDateTimePickerElement();  

dtPicker.Name = "dtPicker";  
radRibbonBarButtonGroup9.Items.Add(dtPicker); 

The radRibbonBarButtonGroup9 has already been added to a chunk in the ribbon bar, whenever I try to launch the application, the application does not load up.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Aug 2018
3 answers
303 views
Hi,

I'm using the radCalendar control. When i doubleclick a date, i want to add the clicked date to a collection.
The problem is that i don't know if it is a date or some other place on the control I have double clicked, eg. when i click on the arrows to change month, if i do this to fast, the control fires a  "double click" event.

Is there any way to decide if i clicked a date or some other place on the control? 

Regards
Svein Thomas
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2018
9 answers
856 views
I have a calendar set so that I highlight holiday dates etc on the calendar using the ElementRender event.

I therefore need to use the SelectionChanging event to to all the pre-work required to get holidays etc from my database.

My problem is that for some reason the SelectionEventArgs in tthe SelectionChanging event only tells me the currently selected date.

How do I find the date that the users has just selected that fired the SelectionChanging event?

For example the current date is 19 Feb 2011, the user selects 30 Mar 2011, SelectionEventArgs contains 19 Feb 2011, I need 30 Mar 2011.

Thanks

Hristo
Telerik team
 answered on 29 Jun 2018
21 answers
1.6K+ views
Hello,

I am currently trying to allow the user of a WinForms DateTimePicker to enter text. When they delete the current text in the DateTimePicker and begin to enter the date the DateTImePicker displays nothing, when they finally enter the correct format (e.g. 10/18/2010) the text appears. This text entry behavior seems completely wrong and I am wondering if this is how your control works or if there is a way for me to allow the user to see the text as they type it into the DateTimePicker?

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jun 2018
1 answer
114 views

hi

i'm using radDateTimePicker with Persian culture (fa-IR)  in my win-from application

but when i want to change month to select other date Next button doesn't work

it will stop on some special month like Ordibehesht(اردیبهشت),Tir(تیر),Esfand(اسفند)

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+128 more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?