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

TimeInterval set to 10 minutes - Control too big

7 Answers 220 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
MiroslavStantic
Top achievements
Rank 1
Iron
MiroslavStantic asked on 20 Jul 2010, 08:20 AM
Hi,

I set the TimeInterval of DateTimePicker to 10 minutes. Now when user opens up a dropdown to select date and/or time drop down is too big on the page. Please see attached screen shot.

Is there a way to limit the height of the drop down area?

Thanks 

Miroslav

7 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 23 Jul 2010, 08:57 AM
Hello Miroslav Stantic,

We will add a ScrollViewer in the RadDateTimePicker for the Clock so the control will not grow so large.

I am sorry for the inconvenience.

All the best,
Panayot
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stefan Buys
Top achievements
Rank 2
answered on 15 Apr 2011, 10:07 AM
Hi Panayot,

I have the same problem, accept that I need a 1 minute interval.

Has the ScrollViewer been implemented in 2011 Q1 release? Also, does it support Virtualization?

Please advise,
Stefan
0
Boyan
Telerik team
answered on 20 Apr 2011, 12:06 PM
Hi Stefan,

We have not implemented a ScrollViewer as we considered it and decided that it is not needed. You can add it by editing the control template of the control but in my opinion it will be rather cumbersome and from a user point of view it would be far easier to write in the TimePicker TextBox the exact time than to scroll in all this items in order to find the exact minute. Of course I may be missing something in your scenario.

Greetings,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stefan Buys
Top achievements
Rank 2
answered on 20 Apr 2011, 01:31 PM
Hi Boyan,

You have a good point and I agree with your suggested approach. I have unfortunately a user required to offer the user the ability to select a date (year, month, day) with the ability to select time (hours, minutes). What I have managed to do in the mean time is create a user control that contains a RadDatePicker (no clock) with a two RadComboBox controls - one for Hours 0-23 and one for Minutes 0 to 59. This way the user can select his/her exact date and time. I do have some issues with this approach as I end up binding a DateTime property in a RIA Services Entity which has some attributes and custom attribute (class validations) attached to it. Refer my post here: http://www.telerik.com/community/forums/silverlight/datetime-picker/validating-raddatetimepicker-in-user-control.aspx.

I need some sort of viable solution to allow the user to select time down to a minute - I was hoping not to create a user control as described above and simply use the RadDateTimePicker a scrollable clock with a TimeInterval set to 00:01. I tried changing the Template as you suggest, but found it more challenging to achieve that I thought it would be.

Any further ideas are welcome.

Thanks,
Stefan

0
Boyan
Telerik team
answered on 26 Apr 2011, 11:58 AM
Hello Stefan,

I prepared a project with modified ClockStyle that is using ScrollViewer, however after adding the all the clock items (1440 items) the opening the dropdown is rather slow. The control is not designed for using so much items and loading all the items is taking more than 5-6 seconds the first time the dropdown is opened. Anyway I have attached the project.
The only way to workaround this would be to make your own Clock template and use Virtualization.

All the best,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kemal
Top achievements
Rank 1
answered on 29 Jun 2011, 02:31 PM
Hi...
Is there any way to change the Close buttons text? (for this example)
0
Boyan
Telerik team
answered on 04 Jul 2011, 09:06 AM
Hi Kemal,

In order to change the Close button text you need to edit the whole template of the control, then find the RadToggleButton with name PART_Close and change its Content. I have attached the modified sample from below. Hope it will be helpful.

Regards,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DateTimePicker
Asked by
MiroslavStantic
Top achievements
Rank 1
Iron
Answers by
Pana
Telerik team
Stefan Buys
Top achievements
Rank 2
Boyan
Telerik team
Kemal
Top achievements
Rank 1
Share this question
or