ShowExpandCollapse property not working

3 posts, 0 answers
  1. Roger Brown
    Roger Brown avatar
    29 posts
    Member since:
    Sep 2012

    Posted 21 Sep 2007 Link to this post


    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. Roger Brown
    Roger Brown avatar
    29 posts
    Member since:
    Sep 2012

    Posted 21 Sep 2007 Link to this post

    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.

  3. DevCraft banner
  4. Jordan
    Jordan avatar
    547 posts

    Posted 21 Sep 2007 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top