Expand disabled nodes

5 posts, 1 answers
  1. Frank
    Frank avatar
    4 posts
    Member since:
    Apr 2016

    Posted 01 Aug Link to this post

    Is it possible to expand disabled nodes. I have the following scenario:

    - parent 1 (enabled and selectable)

         + child 1.1 (disabled and not selectable)

               + child 1.1.1 (enabled and selectable)

    So I need a treeview where i can select different nodes individually. Right now when i disable a node i cannot access any child nodes.

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1265 posts

    Posted 03 Aug Link to this post

    Hi Frank,

    A disabled node can be expanded programmatically through the TreeView's expand method. Here's a dojo example, which demonstrates the use of this method by expanding the "Nissan" disabled node.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Frank
    Frank avatar
    4 posts
    Member since:
    Apr 2016

    Posted 03 Aug Link to this post

    Hi Ivan,

    thanks for answering my question. But i'm afraid that is not really what i was looking for. I need the ability to expand and collapse disabled nodes by mouse klick in the tree (just like enabled nodes).

  4. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1265 posts

    Posted 04 Aug Link to this post

    Hi Frank,

    This behavior is not available out-of-the-box but here's a dojo example that shows how to achieve it through jQuery and the TreeView's methods.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Frank
    Frank avatar
    4 posts
    Member since:
    Apr 2016

    Posted 07 Aug Link to this post

    Hi Ivan,

    that is exactly the behaviour i was looking for! Thank you very much!

     

    Regards

    Frank

Back to Top