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

Selection Range doesn't include the full selection window?

3 Answers 53 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 06 Jan 2012, 01:45 PM
Hi

I might be missing something here...

I'm using the SelectionChanged event to get the selected date range (all fine).  But, the actual selection is controlled by the thin (yellow) selection area within the actual selection window (the thing with the two grab handles), which is always smaller than the selection window.  Is there any way to make them the same size?

Thanks

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 09 Jan 2012, 10:04 AM
Hi Paul,

The time range that you talk about is actually the visible time range. Basically, the timeBar works with three time intervals - the whole time period that the timeBar represents, the currently visible time period and the selected time period. The selection area that you talk about, is actually the element, used to set or change the selected time period.

In case you need the visible time period, you should use the VisiblePeriodChanged event and the ActualVisiblePeriodRange property.

Kind regards,
Tsvetie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paul
Top achievements
Rank 1
answered on 09 Jan 2012, 02:33 PM
Hi

Thanks for you reply, but we might not be talking about the same thing.  I've attached a screenshot.  Essentially, I want the little yellow selection in the left third of the selection window to fill the whole selection window.

Thanks
0
Tsvetie
Telerik team
answered on 10 Jan 2012, 10:50 AM
Hi Paul,

I reviewed the image that you have attached. The element that you talk about is the snap preview element. In case you have enabled snapping, this element appears while you are dragging the selection element, so that is shows where the selection will be dropped. It should not always be smaller than the selection itself - it depends on the MinSelectionRange, MaxSelectionRange and the current intervals that the selection can snap into.

In case this information does not help you, please open a formal support ticket and send me a simple running project, with which you can reproduce the problem, together with a video, demonstrating the behavior you get.

Regards,
Tsvetie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TimeBar
Asked by
Paul
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Paul
Top achievements
Rank 1
Share this question
or