With the current implementation of RadTimeSpanPicker
- all StepTimeSpanComponents
(which includes the default components for day, hour, minute, second and millisecond) have minimum value of 0 for their Minimum
properties. That said when you set the Minimum to be less than 0 it will be processed as 0.
In order to achieve the desired you can create a custom TimeSpanComponentBase for each component you wish to use with negative values. Please find attached a sample project demonstrating this approach. In it I've created a NegativeHourTimeSpanComponent
. In the overriden GetTicksFromItem()
method I return correct ticks for the passed value, which can be a negative number as well.
As our built in implementation only works with positive numbers I would like to ask you to please share more information on your scenario and what caused the need for negative TimeSpan values.
If you think we should improve the implementation of our default components to also include negative numbers you can add a feature request in our feedback portal: http://feedback.telerik.com/Project/143
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?
Telerik Feedback Portal
and vote to affect the priority of the items