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

Hide times with keeping position for others times

1 Answer 86 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 17 Oct 2016, 08:49 AM

Hi,

I want to hide some times in the TimePicker without loosing the position of the displayed times.

Currently, when I set the StartTime and the EndTime, the removed times are "collapsed" in the component.

Instead of "collapsed", I want to hide the removed times.

See screenshots.

How can I modify the TimePicker style for my need?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 19 Oct 2016, 11:52 AM
Hello Jean,

When StartTime and EndTime are set actually a new ClockItemsSource is created with only the times between the set range - the visibility of the items is not set to Collapsed.

So, what we could suggest you in order to achieve the desired is to set the needed TimeInterval for the TImePicker and using a converter to change the Visibility of the Items based on your requirements for range without setting StartTime and EndTime.

Please, check the attached sample that demonstrates that approach.

Hope this helps.

Regards,
Nasko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
TimePicker
Asked by
Jean
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or