Show/Hide Expand-Collapse button(+/-) in treeview

3 posts, 0 answers
  1. Remya
    Remya avatar
    30 posts
    Member since:
    Feb 2012

    Posted 30 Mar 2012 Link to this post

    Hi,

    I am binding the parent nodes to a treeview initially and intends to bind the children of each node on LoadOnDemand.I am checking whether each parent node is having child nodes on initial bind to show or hide the expand-collapse button.I want to hide the expand-collapse button for those nodes who doesn't have any child.

    Help me.
    Thnx in advance.
  2. Remya
    Remya avatar
    30 posts
    Member since:
    Feb 2012

    Posted 30 Mar 2012 Link to this post

    Hi,

    I solved this issue.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 03 Apr 2012 Link to this post

    Hello Remya,

    I am glad to hear that you have solved your issue. 

    Generally speaking, you can turn off the LazyMode property to support this scenario:

    treeView.LazyMode = false;

    Do not hesitate to contact us if you have further questions or issues. 

    Greetings,
    Julian Benkov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top