The following error occurs and I have made some initial research;
Line: 1707 Error: 'get_element()' is null or not an object
This occurs only when tree is not loaded and user clicks to go on other screen. I have made some analysis on this function and this is due to missing parameter attributes.
When the error occurs the second parameter in this f-tion o in the in the _contex attribute in most of the values has nulls.
In line 1670 all this values are transferred to variable e;
var e=o.get_context();
And finally in line 1707 when e.get_element() is called, function fails.
I have noted that this event (onNodeLoadingSuccess) happens after TreeViewNodePopulating and before TreeNodePopulated and a possible solution is if I could check the context and cancel tree loading.
I have tried it this way but seems like context element is locked because it only has value {..} but nothing else can be seen.
function TreeViewNodePopulating(sender, eventArgs) {
var _contextElement = eventArgs.get_context();
}
Could you tell me how to access this context element and check it value and if it’s null I could cancel the whole tree loading process.
Btw the tree loading is successful but after user press ok on this error and the tree reloads itself.
Additional information:
Tree view is client loaded trough web service
Telerik version 2010.2.826.35
Best Regards
Deni Spasovski