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

RadTreeView disappears after node click

3 Answers 197 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 18 Jul 2012, 11:48 AM
hI, i have a radtreeview which is populated in codebehind, with a list of objects. Thre treeview is inside a split panel. Sometimes i need to open a radwindow popup that opens another url, from a menu that lies in the same page in which the treeview is. The popup opens, i do something in that window (a different url) that causes postbacks in the popup, but not in the main page. It depends on how many postbacks i make in the popup, if i close the popup, and then click on a node in the radtreeview,  SOMETIMES it disappears. If i open the popup and make LESS postbacks, all works great. I've tried to bind the treeview into the markup, with an ObjectDataSource, and the strange behavior stops, except for a thing: now the treeview does not disappear, but collapses!

Any ideas?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 23 Jul 2012, 10:34 AM
Hello,

 
Since when you bind RadTreeView into the markup it is not disappearing it seems that the unusual behavior is caused by some custom logic in the code behind binding. A change in the DataSource data may cause disappearing as well. You can refer to this on-line demo where is explained how to do the programmatic data binding.

As for the expanded state you can use the following code in order to assure it:

<DataBindings>
        <telerik:RadTreeNodeBinding Expanded="true" />
</DataBindings>

Hope this will be helpful.
Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
jlj30
Top achievements
Rank 2
answered on 29 Jul 2015, 12:40 AM

Hi Max,

 I realize this is a few years old, but I'm experiencing almost the same issue.

My magic number is 4 - iopen the popup, perform a web service call, close the popup 4 times.

I get errors since the TreeView now appears empty.

Can I ask how you finally resolved this?

Thanks in advance.

Jim

0
Plamen
Telerik team
answered on 30 Jul 2015, 05:08 AM
Hi Jim,


We are not aware of such known issue with RadTreeView so would you please elaborate a little bit how to replicate it or if it can be observed on any of our online demos.

Regards,
Plamen
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
Max
Top achievements
Rank 1
Answers by
Plamen
Telerik team
jlj30
Top achievements
Rank 2
Share this question
or