Topic
  • 2 replies
  • Latest Post - ‏2012-03-02T10:07:03Z by ChrisBSS
ChrisBSS
ChrisBSS
6 Posts

Pinned topic Overriding default <odc:tree> behaviour.

‏2012-02-22T14:29:39Z |
The tree control by default allows you to select categories and subcategories through node selection. This means that if we select a parent category ALL of its subcategories are selected. Also if we select a subcategory its parent category is also selected (this makes sense in the majority of situations).

Is it possible to switch this behaviour off? The idea is that if I select any node ONLY that node is selected (not its children or its parent).

Example is

Category 1
  • Subcategory (selected)
  • Subcategory (not selected)
Category 2 (selected)
Updated on 2012-03-02T10:07:03Z at 2012-03-02T10:07:03Z by ChrisBSS
  • SystemAdmin
    SystemAdmin
    6420 Posts

    Re: Overriding default <odc:tree> behaviour.

    ‏2012-02-25T17:25:44Z  
    There's no way to change the selection behavior of the tree.
  • ChrisBSS
    ChrisBSS
    6 Posts

    Re: Overriding default <odc:tree> behaviour.

    ‏2012-03-02T10:07:03Z  
    After clarifying user requirements decided to enableSelect="false" on the main tree. I now catch the selection of the bottom node and effectively hide that to a hidden field. The hidden field is bound to the data.