Telerik Members:
How can I click date number to change to day view mode in month view mode?
Thank you.
How can I click date number to change to day view mode in month view mode?
Thank you.
3 Answers, 1 is accepted
0
Accepted
Hi Cooper,
Thank you for writing.
If I understand correctly once you click the header of a cell in MonthView, you want to navigate to DayView. If so, you can use the MouseDown event of the scheduler to determine whether you clicked the header of a month cell and navigate to DayView:
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Thank you for writing.
If I understand correctly once you click the header of a cell in MonthView, you want to navigate to DayView. If so, you can use the MouseDown event of the scheduler to determine whether you clicked the header of a month cell and navigate to DayView:
void
radScheduler1_MouseDown(
object
sender, MouseEventArgs e)
{
MonthCellElement monthCell = radScheduler1.ElementTree.GetElementAtPoint(e.Location)
as
MonthCellElement;
if
(monthCell !=
null
&& monthCell.Header.ControlBoundingRectangle.Contains(e.Location))
{
radScheduler1.ActiveViewType = SchedulerViewType.Day;
//if you want to bring the day into view
//
radScheduler1.GetDayView().StartDate = monthCell.Date;
}
}
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
0
Cooper
Top achievements
Rank 1
answered on 19 Aug 2014, 06:52 AM
Another scenario:
How can i click date number to get the resourceId in multi month view?
Is is possible?
Thank you very much.
How can i click date number to get the resourceId in multi month view?
Is is possible?
Thank you very much.
0
Accepted
Hello,
Yes it is possible to get the ResourceID from the month cell:
I hope this helps.
Regards,
Stefan
Telerik
Yes it is possible to get the ResourceID from the month cell:
monthCell.View.GetResourceId()
I hope this helps.
Regards,
Stefan
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.