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

Tell if an appoinment is in the visible area or not

3 Answers 27 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 22 Nov 2012, 08:58 AM
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

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 27 Nov 2012, 01:35 PM
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.

0
Håkan
Top achievements
Rank 1
answered on 21 Jan 2013, 02:40 PM
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
0
Konstantina
Telerik team
answered on 24 Jan 2013, 02:29 PM
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.

Tags
ScheduleView
Asked by
Håkan
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Håkan
Top achievements
Rank 1
Share this question
or