Focus on work hours in Scheduler week view

1 Answer 83 Views
Scheduler
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Bernd asked on 24 Feb 2023, 01:17 PM

Hi.

I am working with the Scheduler component and I display the WeekView in full day mode. Is there a possibility, that I can somehow achieve to automatically scroll to the work hours when the Scheduler opens? (see attached screenshot)

I know that I can limit the view to show the work hours only but that is not what I want. I just would like to achieve that our users don't have to scroll down everytime the Scheduler opens to see the work hours. Same behavior would be desirable in DayView.

Any help would be appreciated.

Thanks,

Bernd

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 28 Feb 2023, 07:17 AM

Hello Bernd,

Although that there is no built-in solution that we can suggest, nor an appropriate event that can be handled for this, you can try to manually capture the click event of the "show working hours" button and maybe the onDateChange event to find the first working hour cell and manually focus it. Here is an example that demonstrates the idea:

It might be more accurate to get the coordinates of the cell within the container and manually scroll the scrollbar to that "top" position, so it can match exactly first work hour cell. 

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Konstantin Dikov
Telerik team
Share this question
or