Is there a way to capture the Time Ruler click events in c1Schedule?

Posted by: spaceage15 on 10 September 2019, 4:40 pm EST

  • Posted 10 September 2019, 4:40 pm EST

    Hi support team!
    I'm facing an issue here where if a double click on the time ruler fires the beforeAppointmentCreate() method with the correct selected time interval for appointments. But if a right click on the time ruler without previously selecting a time interval, the selected time interval "Start" is inaccurate.

    Is there any way I can capture the TimeRuler click to then update the selected time interval on right click?

    We're are currently using v2.0.50727.

    Any suggestions would be gets. Thanks in advance.

    -Edson
  • Replied 11 September 2019, 3:53 pm EST

    Hello,

    As per my understanding when right click on the TimeRuler, the default context menu appear so are you disabling the context menu in BeforeContextMenuShow event? If yes so when you double click using right mouse button, the Appointment dialog opens with correct time interval at my end.

    If my understanding is incorrect, please provide some more information. Also please share a stripped down sample of what you are trying to do at you end. Please mention the Build Version of the controls that you are using.

    Regards,
    Prabhat Sharma.
  • Replied 11 September 2019, 4:05 pm EST

    Hello,

    To get the Build Version of your control right click on the control on designer and select the Properties option, this will open a Properties dialog box of that control then on the bottom of that dialog there is a
    "About ControlName" option, click on that option. It will show a nag screen in which your control build version and product key details are mentioned.

    Regards,
    Prabhat Sharma.
  • Replied 13 September 2019, 10:08 am EST

    prabhat.sharma said:
    Hello,

    As per my understanding when right click on the TimeRuler, the default context menu appear so are you disabling the context menu in BeforeContextMenuShow event? If yes so when you double click using right mouse button, the Appointment dialog opens with correct time interval at my end.

    If my understanding is incorrect, please provide some more information. Also please share a stripped down sample of what you are trying to do at you end. Please mention the Build Version of the controls that you are using.

    Regards,
    Prabhat Sharma.



    Hello Prabhat,

    Follow these steps to reproduce what I'm referring to.

    1) Double click 8am on the time ruler to bring up the new appointments window.
    2)Recognize that start time is correct at 8am. Thats perfect.
    3)Close appointments screen.
    4)Right Click time ruler at 10am to bring up context menu, click new appointment.
    5)Recognize that start time is still set to 8am. Thats incorrect because the right click on the time ruler was made at 10am.

    So the issue I'm having is that when users right click on the time ruler to create new appointments, the selected start time isn't the time that the user selected on the right click.

    Below, I've attached a sample project. I've also tested this on a version from 2018 and still was able to reproduce this bug. Currently, our application is released to our clients with version 2.0.2113.183

    Any suggestions to handle this would be great. Thanks
    Regards,
    Edson

    C1ScheduleDemo.zip
  • Replied 15 September 2019, 6:03 pm EST

    Hello,

    It was a known issue which has been fixed in the 2019V1 release.
    You can see this fix in the release history documentation of 2019V1 in the link given below :

    http://help.grapecity.com/componentone/NetHelp/WinForms_ReleaseHistory/webframe.html#2019v1.html

    You can download the latest builds i.e. 2019V2 from the link given below :
    https://www.grapecity.com/download/product-componentone

    Regards,
    Prabhat Sharma.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels