This is a migrated thread and some comments may be shown as answers.

Automatic change size of dropdown in DateTimepicker?

10 Answers 1459 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Lovsten
Top achievements
Rank 1
Lovsten asked on 01 Oct 2007, 07:20 AM
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)?

10 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 01 Oct 2007, 08:40 AM
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
0
Lovsten
Top achievements
Rank 1
answered on 01 Oct 2007, 08:56 AM
Worked like a charm. Thanks.
0
Erik
Top achievements
Rank 1
answered on 10 Oct 2007, 12:29 PM
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
0
Vassil Petev
Telerik team
answered on 10 Oct 2007, 02:48 PM
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
0
Erik
Top achievements
Rank 1
answered on 10 Oct 2007, 02:53 PM
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
0
Boyko Markov
Telerik team
answered on 11 Oct 2007, 07:23 AM
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
0
selvakumar
Top achievements
Rank 2
answered on 09 May 2009, 04:42 AM
Can we disable the resizing property of the raddatetimepicker?

Thanks in advance..
0
Boyko Markov
Telerik team
answered on 11 May 2009, 12:33 PM
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.
0
PROGRA
Top achievements
Rank 1
answered on 24 Jun 2013, 05:37 PM
É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
0
Stefan
Telerik team
answered on 26 Jun 2013, 04:19 PM
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 >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Lovsten
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Lovsten
Top achievements
Rank 1
Erik
Top achievements
Rank 1
Vassil Petev
Telerik team
selvakumar
Top achievements
Rank 2
PROGRA
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or