Force all nodes to be expanded and non-collapsible

3 posts, 0 answers
  1. Tommy
    Tommy avatar
    6 posts
    Member since:
    Mar 2009

    Posted 08 May 2009 Link to this post

    My client wants me to simulate a table of contents.  All nodes must be open initially without the ability to collapse them.  I need to hide the lines and "plus".  Each node will have context menus associated and must be clicable

    I can accomplish most of this, but it seems dirty to me.

    Is there a recommended way to make the treeview "fully expanded and non collapsible".  Hopefully I just missed a setting

    Thanks
    Tommy


  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 11 May 2009 Link to this post

    Hi Tommy,

    On page load you can call the ExpandAllNodes() method.
    To prevent collapsing - please subscribe to the OnClientNodeCollapsing event and cancel it.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Tommy
    Tommy avatar
    6 posts
    Member since:
    Mar 2009

    Posted 11 May 2009 Link to this post

    I wasnt doing the "OnClientNodeCollapsing" cancel piece.    That resolved my problem

    Thanks for your quick response!
Back to Top