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

radSchedulerNavigator.TimelineViewClick Event Not showing up in Q2 2010 or Q2 2010 sp1

3 Answers 92 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Brennan
Top achievements
Rank 1
Brennan asked on 02 Sep 2010, 10:35 PM
I cannot seem to find this event in the event list.  Is this a known issue?  The API says it should be there...

3 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 07 Sep 2010, 04:41 PM
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:

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
Dobry Zranchev
Telerik team
answered on 10 Sep 2010, 05:52 PM
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:
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
Tags
Scheduler and Reminder
Asked by
Brennan
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Brennan
Top achievements
Rank 1
Share this question
or