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

"Scroll to Specific Time Slot" failing in local environment

3 Answers 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 2
Veteran
Iron
Grant asked on 11 Oct 2018, 09:01 AM

Hi, 

As my title says the "Scroll to Specific Time Slot" (https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/scrolling/scroll_to_given_time_slot) example does not work in my local environment. I've copied it letter-for-letter, exactly as it is in the example and without exception, it fails every time on the "scheduler.slotByElement(rows[i]);" line. it always returns null. the rows exits, the exists. it works in your demo but fails at that line in my code.

PLEASE help as I have no clue what is happening. All that runs through my head is WTF over and over. 

Note: that I am up-to-date with v2018.3.911

Thanks, 
Grant

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 12 Oct 2018, 09:37 AM
Hi Grant,

The sample works as expected on my side with version 2018.3.911. Could you change the following Dojo snippet to follow your implementation, e.g. copy paste it into the snippet instead of the current one and send the modified version back to us to inspect what may be causing this error.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Grant
Top achievements
Rank 2
Veteran
Iron
answered on 15 Oct 2018, 08:48 AM

Morning Dimitar,

Thanks for the response. 

I've updated the sample you sent (https://dojo.telerik.com/OBawuGeZ/2) but as I said, I copied it exactly as it is in the example. So I've included some debug lines with explanations of what is happening in my local environment. I know it works in the example, but slotByElement() only returns null when I use it in my app.

Please advise, thanks,
Grant

 

0
Dimitar
Telerik team
answered on 16 Oct 2018, 10:44 AM
Hi Grant,

I managed to reproduce the error on my side, when switching the Scheduler to Agenda View, as in this view there are no such timeslots. Are you testing with Agenda View? The other views throw no error. The How To article seems to not target Agenda view, so most probably we should remove it from the configuration to avoid misunderstanding.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler
Asked by
Grant
Top achievements
Rank 2
Veteran
Iron
Answers by
Dimitar
Telerik team
Grant
Top achievements
Rank 2
Veteran
Iron
Share this question
or