This is a migrated thread and some comments may be shown as answers.

RadDropDownListElement & DateTimePicker

2 Answers 87 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 17 Jul 2019, 02:02 PM

Not sure if in correct place for this one.

I have a winform radribbonbarbuttongroup that I would like to put a date picker in for the user to pick a date.

How do I add this in? Does not appear on the Add A Item drop down list in the Dev UI.

 

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Jul 2019, 07:52 AM
Hello, Deasun,  

In order to achieve your goal, it is necessary to add a RadDateTimePickerElement to the RadRibbonBarButtonGroup.Items collection:

public RadForm1()
{
    InitializeComponent();
 
    RadDateTimePickerElement dtPicker = new RadDateTimePickerElement();
    dtPicker.MinSize = new System.Drawing.Size(200, 20);
    dtPicker.Value = DateTime.Now;
    this.radRibbonBarButtonGroup1.Items.Add(dtPicker);
}



I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
answered on 19 Jul 2019, 11:34 AM
Thanks
Tags
DateTimePicker
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Share this question
or