Automatic change size of dropdown in DateTimepicker?

11 posts, 0 answers
  1. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 01 Oct 2007 Link to this post

    I got a datetimepicker. Displaying short date format. If I do the size of the control to suit that format, the drop down showing the month is very small. User can use the handle in the bottom right corner to resize it, but I want it to show nicely to start with. Any way to do that other than increasing the width of the datetimepicker (which leave a lot of blank space to the right)?
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 01 Oct 2007 Link to this post

    Hello Lovsten,

    We have provided a property the purpose of which is to change the size of the drop down, namely the CalendarSize property.
    You could use the following code snippet as an example how to change the size of the drop down:

    this.radDateTimePicker1.DateTimePickerElement.CalendarSize = new Size(300, 150);

    Please tell me if I could be of your further assistance.  
     

    Regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 01 Oct 2007 Link to this post

    Worked like a charm. Thanks.
  5. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 10 Oct 2007 Link to this post

    Hi Telerik,

    I set 
    me.radDateTimePicker1.DateTimePickerElement.CalendarSize = new Size(300, 150);

    But the height is not resized. Any setting for this? I tried Autosize. Nothing happen.

    Please help. Thanks
  6. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 10 Oct 2007 Link to this post

    Are you setting the height in the theme by any chance? Please, check this and let us know of the result.


    All the best,
    Rob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 10 Oct 2007 Link to this post

    I dont think so because I just drag from toolbox and use it. Anything to do with MaxSize or MinSize both are (0,0).

    Thanks
  8. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 11 Oct 2007 Link to this post

    Hi Erik,

    Could you please open a new support ticket and send us a sample project reproducing the erroenous behavior as we cannot reproduce it? Thanks in advance.

    Best wishes,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. selvakumar
    selvakumar avatar
    1 posts
    Member since:
    Nov 2008

    Posted 08 May 2009 Link to this post

    Can we disable the resizing property of the raddatetimepicker?

    Thanks in advance..
  10. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 11 May 2009 Link to this post

    Hello selvakumar,

    Here is the sample code which disables resizing:

       RadDateTimePickerCalendar calendarBehavior = (this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar);
                calendarBehavior.DropDownSizingMode = SizingMode.None;
           
    I hope this helps.

    Best wishes,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. PROGRA
    PROGRA avatar
    7 posts
    Member since:
    Jun 2013

    Posted 24 Jun 2013 Link to this post

    Ésto forma Funciona muy bien, Pero yo lo cargo con la ONU Tamano, y con la Herramienta de la esquina inferior Cambio el tamano de la ONU uno mas grande, selecciono la Fecha y sí contrae todo bien el Problemas es CUANDO vuelvo a la Pantalla emergente del calendario de Como le hago Para Qué respete el tamano
     al inicio
  12. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Jun 2013 Link to this post

    Hello,

    I would kindly ask you to post your question in English in order to allow us to address your question for you. Please note that English is the official language for correspondence with the support teams in Telerik, hence we will ask you to post all future questions in English.

    Thank you for the understanding.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready