When a scheduler is switch and "right-click"/context-menu is triggered on a slot in a newly switched scheduler, an error message occur: "Unable to get property 'getFullYear' of undefined or null reference" - in kendo.all.min.js
This message will pop up on IE and trigger an error message in the console on Google Chrome,
So far the error doesn't have any impact in general, just an annoying error message,
Apparently, it won't trigger any error if "left-click" is triggered first on a slot in a newly switched scheduler before the "context-menu", and I realized that the "left-click" will give a focus and select a slot on a current scheduler. But the focus won't be given automatically by simply switching the scheduler,
I switch the scheduler only by clicking a button that will set the display of a div to 'block' and zindex to '100' and then refresh the scheduler with .refresh(). The div has scheduler inside of it.
So in general, the switching looks like this:
When the switching occur, the scheduler won't switch the focus, how can I select a slot on a newly switched scheduler or at least give a focus to the newly switched scheduler?
Because focus() method will not select a slot and it will still trigger the error
9 Answers, 1 is accepted
The described issue is not a known problem. Could you provide more details and if possible runnable demo that demonstrates the problem ? This will help us to investigate further the case and follow you up with more details.
here is a simple demo that represents the error:
if you click on button "see schedule 2" then it will switch to schedule number 2,
and then if you right-click on the scheduler afterwards, then you will get the "getFullYear" error on the console,
However, I managed to switch focus by adding the .refresh() functionality so it can remember the last focus and select that slot,but if you've never left-click or give focus onto the scheduler before, then it won't select any slot
Thank you for the repro demo. It seems that this is bug related to our initial focusing behavior. I have logged the issue in our product backlog and will address is for the next service pack of Kendo UI.
As a gratitude for your involvement I updated your Telerik points.
The previously reported issue is already fixed on our side (as seen in this demo) - that why I would ask you to provide runable example where the issue is reproduced inside the other support thread that you opened?
Hi Vladimir Iliev,
I am also facing same Cannot read property 'getFullYear' of undefined Issue.
and i tried to open link given by you http://dojo.telerik.com/UTepi is not opening saying "There is a problem with the page. Please reload the page." ...
You will find my reply in the support thread you opened on the subject. I suggest to continue the communication there.