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

How can I click date number to change to day view mode in month view mode?

3 Answers 39 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Cooper
Top achievements
Rank 1
Cooper asked on 18 Aug 2014, 02:52 AM
Telerik Members:

How can I click date number to change to day view mode in month view mode?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 18 Aug 2014, 06:59 AM
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:
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.
0
Accepted
Stefan
Telerik team
answered on 19 Aug 2014, 07:25 AM
Hello,

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.
 
Tags
Scheduler and Reminder
Asked by
Cooper
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Cooper
Top achievements
Rank 1
Share this question
or