TimeInterval set to 10 minutes - Control too big

8 posts, 0 answers
  1. Miroslav Stantic
    Miroslav Stantic avatar
    42 posts
    Member since:
    Oct 2003

    Posted 20 Jul 2010 Link to this post

    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
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 23 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Stefan Buys
    Stefan Buys avatar
    22 posts
    Member since:
    Dec 2009

    Posted 15 Apr 2011 Link to this post

    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
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 20 Apr 2011 Link to this post

    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
  6. Stefan Buys
    Stefan Buys avatar
    22 posts
    Member since:
    Dec 2009

    Posted 20 Apr 2011 Link to this post

    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

  7. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 26 Apr 2011 Link to this post

    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
  8. Kemal
    Kemal avatar
    7 posts
    Member since:
    Sep 2010

    Posted 29 Jun 2011 Link to this post

    Hi...
    Is there any way to change the Close buttons text? (for this example)
  9. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 04 Jul 2011 Link to this post

    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
Back to Top
DevCraft banner