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

ShowExpandCollapse property not working

2 Answers 73 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Roger Brown
Top achievements
Rank 1
Roger Brown asked on 21 Sep 2007, 06:39 AM
Hi,

I was just trying my hands on latest Winforms Q2 version for RadTreeView. In one of my project I want to use TreeView as of like menu but don't want to have ability to collapse nodes.

During this I found there are couple of properties, ShowExpandCollapse and ShowPlusMinus can do some trick. But what I found is - when I set them to false Design time view for Controls is just fine but these properties has no effect when I run application.

Then I looked other way - NodeExpandedChanging event and have e.Cancel = true in event. In this case ExpandAnimation (which is opacity by default) get executed. So I looked in property and set that to None - and guess what that property also has no effect while I run my App!

I have not done any kind of runtime databinding, I have just added few Nodes to have hierarchical view for test. I also check TreeViewXml and that looks exactly as I have setup.

Is this a bug? or I am missing something?     

2 Answers, 1 is accepted

Sort by
0
Roger Brown
Top achievements
Rank 1
answered on 21 Sep 2007, 06:50 AM
Let me add more - Setting Theme property also behaves same as above ShowExpandCollapse! Design time behavior is fine but runtime no effect!!!

I used Office2007Black as Theme. Design time it is fine showing blank gradient as background but on runtime old plain background.

0
Jordan
Telerik team
answered on 21 Sep 2007, 11:45 AM
Hello Bryan Andrews,

This is a known issue with design time when you try to change a property after running the project without closing the form in design time. Unfortunately, it is not only RadTreeView that is involved in this scenario, but the Visual Studio design time as well.

We are working on a solution but cannot give you a specific time frame. Please, check back with us next month and we will update you on our progress.

Thank you for your time.
 

Sincerely yours,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Treeview
Asked by
Roger Brown
Top achievements
Rank 1
Answers by
Roger Brown
Top achievements
Rank 1
Jordan
Telerik team
Share this question
or