Tell if an appoinment is in the visible area or not

4 posts, 0 answers
  1. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 22 Nov 2012 Link to this post

    Hi,

    In some places after modifying an appoinment in a dialog, I use the ScrollIntoView method on the ScheduleView to make sure it is still visible.
    But this will scroll the appoinment to the top of the visible area, which is a bit annoying sometimes when it was already visible and in the middle of the screen.

    Is there anyway I can first check if the appoinment is within the visible area, so in this case I do not need to call the ScrollIntoView method?

    Regards,
    Håkan
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 27 Nov 2012 Link to this post

    Hello,

    You could use the VisibleRange property to check what is the visible time and if the appointment is inside it.

    All the best,
    Konstantina
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 21 Jan 2013 Link to this post

    Hi again!

    Sorry for the long time before I answer this.

    In my case the visible range is a whole day, but my appointments are grouped by resource.

    So I need to check if the current appointments resource is visible. Is that possible?
    Both in DayView and TimelineView (displaying 7 days).

    Regards,
    Håkan
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 24 Jan 2013 Link to this post

    Hi Håkan,

    I am sorry, but the ScheduleView doesn't provide a way to check which group is visible at the moment. If it is before the first visible group, I can suggest you to use the FirstVisibleGroup property of the ScheduleView. But for the ones after the end of the visible range there is no public accessible information for the groups.
    Sorry for the inconvenience.

    Kind regards,
    Konstantina
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top