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

DateTime Picker in Ribbonbar

7 Answers 458 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Aug 2008, 09:44 PM
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.

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 Aug 2008, 02:38 PM
Hello Michael,

You could put the DateTimePicker via the RadHostItem.
Consider the sample code below:
RadDateTimePicker dtPicker = new RadDateTimePicker(); 
dtPicker.Name = "dtPicker"
dtPicker.ThemeName = "Office2007Blue"
RadHostItem hostItem = new RadHostItem(dtPicker); 
hostItem.MinSize = new Size(150, 10); 
hostItem.MaxSize = new Size(150, 10); 
radRibbonBarChunk1.Items.Add(hostItem); 

I hope this helps. Don't hesitate to contact us if you have other questions.

Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mnaish
Top achievements
Rank 1
answered on 30 Oct 2008, 04:27 AM
I need silverlight datetime picker.
0
Nick
Telerik team
answered on 30 Oct 2008, 09:59 AM
Hello Mnaish,

Thank you for contacting us and your interest in our Silverlight controls. Unfortunately, this is our WinForms section, so please post your inquiry to the Silverlight section of our Forums.
 

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Llorens Mathieu
Top achievements
Rank 1
answered on 09 Oct 2009, 07:39 AM
Is it possible to add a radDatePicker (or other controls) in the ribbonBar using the design mode of visual studio?
0
Deyan
Telerik team
answered on 12 Oct 2009, 07:34 AM
Hi Llorens,

Thanks for writing and for your question.

It is not possible to add a RadDateTimePicker in a RadRibbonBar using Visual Studio Designer. However, you can do this programmatically by using the following code snippet:

RadDateTimePickerElement dateTimePickerElement = new RadDateTimePickerElement();
dateTimePickerElement.MinSize = new Size(150, 20);
RadRibbonBarButtonGroup btnGroup = new RadRibbonBarButtonGroup();
btnGroup.Items.Add(dateTimePickerElement);
this.radRibbonBarGroup5.Items.Add(btnGroup);

I hope this is helpful. Do not hesitate to write back if you need further assistance.

Sincerely yours,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Deasun
Top achievements
Rank 1
answered on 09 Aug 2018, 07:38 PM

Good evening,

I know this is an old posting.

But I was wondering if this is now doable in the VS design mode?

Really need the datepicker for my group. :)

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Aug 2018, 07:47 AM
Hello, Deasun,      

In the following screenshot it is illustrated what kind of elements can be added to a ribbon's group at design time:



In order to add a RadDateTimePickerElement, you can achieve it programmatically. Feel free to use the demonstrated approach in the previous reply.
  
I hope this information helps. If you have any additional questions, please let me know.  
 
Regards,
Dess
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.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Michael
Top achievements
Rank 1
Answers by
Peter
Telerik team
Mnaish
Top achievements
Rank 1
Nick
Telerik team
Llorens Mathieu
Top achievements
Rank 1
Deyan
Telerik team
Deasun
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or