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

Problem with RadTreeView on event _onNodeLoadingSuccess

2 Answers 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Deni
Top achievements
Rank 1
Deni asked on 15 Dec 2010, 02:31 PM

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

 

 

2 Answers, 1 is accepted

Sort by
0
Deni
Top achievements
Rank 1
answered on 15 Dec 2010, 04:10 PM

update: in the variable e when error occurs there is additional attribute 
  _rendered = false

0
Accepted
Nikolay Tsenkov
Telerik team
answered on 20 Dec 2010, 06:19 PM
Hi Deni,

I have posted an answer on this question in the support ticket you opened.
Please, check my answer there.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
Deni
Top achievements
Rank 1
Answers by
Deni
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or