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

[Solved] Problem when set ExpandMode is ServerSideCallBack for RadTreeView

1 Answer 53 Views
RadEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
TreeView
Top achievements
Rank 1
TreeView asked on 25 Jul 2007, 11:02 AM
Hi,
I user RadTreeView for SharePoint2003.

when i set Expandmode property is ServserSide, it runs Ok.
But when i set that property to ServerSideCallBack, it's not run.

Did i miss any properties??

By the way, because i choose "Load on demand"  way , every node in first load has "+",  it will changes into "-" in case of expand and into "+" in case of collapse. but if nodes dont have child node, why doesn't it change to "+" or hide icon ? it always display "-".

Please help me for those problem.
Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 26 Jul 2007, 08:14 AM
Hello TreeView,

We checked your other forum post where you provided a code snippet.

Would you please tell us whether the parentNode object is global for the entire class? I noticed that you are adding child nodes only to that parentNode object? Why is this needed? Do you want to add child-nodes on demand only to the parent node. This is kind of confusing load on demand approach. The load on demand feature is generally used to add child-nodes to the node that is being expanded. I tried your approach with a globally defined parentNode object and the problem appeared as you described it when ServerSideCallBack is used. The problem is due to the async requests ServerSideCallBack mode is firing when loading the nodes. Therefore, the parentNode object seems to get lost. When adding the tree nodes via ServerSideCallBack the nodes are not persisted on the server-side, but only at the client.

Is it acceptable for you to use ExpandMode.ServerSide instead?

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
RadEditor
Asked by
TreeView
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or