3 Answers, 1 is accepted
0
Hi Brennan,
Thank you for contacting us. There is no dedicated event, specific for the timeline view. However, you can use the Click event of RadScheduler. When handling the event you can get the element under mouse by using SchedulerUIHelper class methods (GetCellAtPoint, GetAppointmentAtPoint etc.)
Please consider the following code snippet:
I hope this helps. If you have other questions, feel free to write me back.
Sincerely yours,
Dobry Zranchev
the Telerik team
Thank you for contacting us. There is no dedicated event, specific for the timeline view. However, you can use the Click event of RadScheduler. When handling the event you can get the element under mouse by using SchedulerUIHelper class methods (GetCellAtPoint, GetAppointmentAtPoint etc.)
Please consider the following code snippet:
void
radScheduler1_Click(
object
sender, EventArgs e)
{
DayViewAppointmentsTable table = (
this
.radScheduler1.SchedulerElement.ViewElement
as
SchedulerDayViewElement).DataAreaElement.Table;
SchedulerCellElement schedulerCell = SchedulerUIHelper.GetCellAtPoint(Cursor.Position, table.Children);
System.Collections.Generic.List<SchedulerDayViewElement> dayviews =
new
System.Collections.Generic.List<SchedulerDayViewElement>();
dayviews.Add(
this
.radScheduler1.SchedulerElement.ViewElement
as
SchedulerDayViewElement);
AppointmentElement appointmentElement = SchedulerUIHelper.GetAppointmentAtPoint(Cursor.Position, dayviews);
}
I hope this helps. If you have other questions, feel free to write me back.
Sincerely yours,
Dobry Zranchev
the Telerik team
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?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Brennan
Top achievements
Rank 1
answered on 07 Sep 2010, 06:02 PM
Is this possible in timelineview though? I haven't been able to access individual cells in timelineview up to this point. For example, there isnt a DataAreaElement in timelineview etc.
0
Hi Brennan,
Thank you for writing back.
In order to check which cell is clicked in the Timeline View, you can use the following code snippet:
I hope that this will help you. If you have other questions, feel free to write back.
Sincerely yours,
Dobry Zranchev
the Telerik team
Thank you for writing back.
In order to check which cell is clicked in the Timeline View, you can use the following code snippet:
TimelineAppointmentsPresenter presenter = (
this
.radScheduler1.SchedulerElement.ViewElement
as
SchedulerTimelineViewElement).Presenter;
SchedulerCellElement schedulerCell = SchedulerUIHelper.GetCellAtPoint(Cursor.Position, presenter.Children);
I hope that this will help you. If you have other questions, feel free to write back.
Sincerely yours,
Dobry Zranchev
the Telerik team
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items