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

Emil
451317
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.

Regards,
Ibrahim

link

answered 17 Jan '13, 07:59

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
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

By RSS:

Answers

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

Tags:

×11
×5

Asked: 17 Jan '13, 07:10

Seen: 2,733 times

Last updated: 17 Jan '13, 08:01


© Copyright Gerger 2017