Hi, I was trying to add the RadDateTime picker to the ribbon bar programmatically by doing:
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.
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
0
Hello Michael,
You could put the DateTimePicker via the RadHostItem.
Consider the sample code below:
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.
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
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.
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
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:
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.
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
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
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.
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.