DateTime Picker in Ribbonbar

8 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";  
    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.
  2. Peter
    Admin
    Peter avatar
    1160 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); 
    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.
  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
    Admin
    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,
    Nick
    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
    Admin
    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();
    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.
  7. Deasun
    Deasun avatar
    13 posts
    Member since:
    Jan 2017

    Posted 09 Aug 2018 in reply to Deyan Link to this post

    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. :)

  8. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4086 posts

    Posted 13 Aug 2018 Link to this post

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