DateTime Picker in Ribbonbar

6 posts, 0 answers
  1. Michael
    Michael avatar
    11 posts
    Member since:
    Dec 2007

    Posted 05 Aug 2008 Link to this post

    Hi, I was trying to add the RadDateTime picker to the ribbon bar programmatically by doing:


    RadDateTimePickerElement dtPicker = new RadDateTimePickerElement();  

    dtPicker.Name = "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.
  2. Peter
    Peter avatar
    1148 posts

    Posted 06 Aug 2008 Link to this post

    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); 

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

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Mnaish
    Mnaish avatar
    1 posts
    Member since:
    Oct 2008

    Posted 29 Oct 2008 Link to this post

    I need silverlight datetime picker.
  4. Nick
    Nick avatar
    767 posts

    Posted 30 Oct 2008 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Llorens Mathieu
    Llorens Mathieu avatar
    19 posts
    Member since:
    Jan 2009

    Posted 09 Oct 2009 Link to this post

    Is it possible to add a radDatePicker (or other controls) in the ribbonBar using the design mode of visual studio?
  6. Deyan
    Deyan avatar
    2147 posts

    Posted 12 Oct 2009 Link to this post

    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();

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

    Sincerely yours,
    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.
Back to Top