Selection Range doesn't include the full selection window?

4 posts, 0 answers
  1. Paul
    Paul avatar
    14 posts
    Member since:
    Dec 2010

    Posted 06 Jan 2012 Link to this post

    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
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 09 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Paul
    Paul avatar
    14 posts
    Member since:
    Dec 2010

    Posted 09 Jan 2012 Link to this post

    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
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 10 Jan 2012 Link to this post

    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 >>

Back to Top