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

OnDemand Loading - Stack Overflow Exception

3 Answers 115 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 09 Nov 2015, 02:12 PM

Since the latest Update (Nov 2015) I run in all my implementations for LOD (RadTreeView) into an endless loop (stack overflow exception).

I've checked my implementation and even if I return immediately in the NodesNeeded event method - the exception is thrown.

It seems to me, that this update is buggy ... Can anybody confirm this observation or is there a problem on my side?

My implementation is very simple

LazyLoad=false

NodesNeeded += (o, e)=>{return;};

Any help is appreciated.

 

Thanks

 

 

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Nov 2015, 02:52 PM
Hello Matthias,

Thank you for writing.

It is a known problem. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.

Currently, the possible solution that I can suggest is to set the AllowArbitraryItemHeight property to true.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 10 Nov 2015, 06:11 PM

Hi Matthias 

Also, another bug leads to NodesNeeded Event being called even if LazyMode is set to false. We therefore have to de-register the event handler for NodesNeeded to prevent the stack overflow. (see my comment in the feedback item).

I hope that Telerik releases a fix for this showstopping bug before 2016Q1, because I would like to see this fixed without high risk of new showstopping bugs in a new feature release.

This time I was lucky because I could implement the workaround in  my base class where all my trees inherit from, but if you have dozens of trees without a common class in your code, fixing this can turn out to be a nightmare.

 

Regards

Erwin

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Nov 2015, 02:51 PM
Hello Erwin,

Thank you for writing.

Please refer to the last comment in the feedback item added by Ivan Todorov. He suggests a workaround which covers the case when the LazyMode property is set to false. For now, the issue is scheduled for the next official release.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Treeview
Asked by
Matthias
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
erwin
Top achievements
Rank 1
Veteran
Iron
Share this question
or