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

4 posts, 2 answers
  1. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 17 Aug 2014 Link to this post

    Telerik Members:

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

    Thank you.
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 18 Aug 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 19 Aug 2014 in reply to Stefan Link to this post

    Another scenario:

    How can i click date number to get the resourceId in multi month view?

    Is is possible?   

    Thank you very much.
  5. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 19 Aug 2014 Link to this post

    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.
     
Back to Top