Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Calendar and DateTimePicker, TimePicker and Clock > Automatic change size of dropdown in DateTimepicker?

Automatic change size of dropdown in DateTimepicker?

Feed from this thread
  • Posted on Oct 1, 2007 (permalink)

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

    Reply

  • Boyko Markov Boyko Markov admin's avatar

    Posted on Oct 1, 2007 (permalink)

    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

    Reply

  • Posted on Oct 1, 2007 (permalink)

    Worked like a charm. Thanks.

    Reply

  • Posted on Oct 10, 2007 (permalink)

    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

    Reply

  • Vassil Petev Vassil Petev admin's avatar

    Posted on Oct 10, 2007 (permalink)

    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

    Reply

  • Posted on Oct 10, 2007 (permalink)

    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

    Reply

  • Boyko Markov Boyko Markov admin's avatar

    Posted on Oct 11, 2007 (permalink)

    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

    Reply

  • Posted on May 8, 2009 (permalink)

    Can we disable the resizing property of the raddatetimepicker?

    Thanks in advance..

    Reply

  • Boyko Markov Boyko Markov admin's avatar

    Posted on May 11, 2009 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Calendar and DateTimePicker, TimePicker and Clock > Automatic change size of dropdown in DateTimepicker?
Related resources for "Automatic change size of dropdown in DateTimepicker?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]