Hi, There is an icon which turn to "-" when node is expanded. How I can disable or delete that icon of the tree which have not children to populate?

asked 17 Jan '13, 07:10

Emil's gravatar image

accept rate: 0%

edited 17 Jan '13, 07:11

Hi Emil,

You can use the nodeStateColumn attribute of the tree to hide the "+" icon and make a node non-expandable. In the api_treenode package, there are three constants named LEAF, COLLAPSED and EXPANDED which can be used as the nodeState value.

In your case, you should define a new column in your tree's datasource and set it's value as api_tree.COLLAPSED or api_tree.LEAF following whether the node has children or not. Then, you should assign this column to the nodeStateColumn attribute of your tree.

If the node state is decided at runtime and you have a hierarchical query to populate your tree, you can use use the connect_by_isleaf pseudocolumn to evaluate whether it's a leaf node or not.

You can find a more detailed answer here. It explains how to use nodeStateColumn attribute and connect_by_isleaf pseudocolumn.



answered 17 Jan '13, 07:59

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

edited 17 Jan '13, 08:01

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 Jan '13, 07:10

Seen: 3,616 times

Last updated: 17 Jan '13, 08:01

© Copyright Gerger 2017