0

How can I change treeitem checkbox selection behavior?

asked 2016-01-28 11:28:26 +0800

gooamoko gravatar image gooamoko
5 2

updated 2016-01-28 11:29:58 +0800

Hi all.

I have a tree

<tree id="objects" vflex="1" model="@bind(vm.objects)" multiple="true"
  checkmark="true" onSelect="@command('select')">
  <treecols>
    <treecol/>
  </treecols>
  <template name="model" var="item">
    <treeitem>
      <treerow>
        <treecell image="@load(vm.getIcon(item))" sclass="nowrap"
          tooltiptext="@load(item.title)" label="@load(item.title)"/>
      </treerow>
    </treeitem>
  </template>
</tree>

All i want is to make a tree item checkbox checked only if user click on checkbox icon. Not on the text of item. Is it posible? If yes - where can I find information how to implement it?

Many thanks and best regards.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-01 07:53:28 +0800

gooamoko gravatar image gooamoko
5 2

I found it. Simplest way - is to use nonselectableTags="*" parameter:

<tree id="objects" vflex="1" model="@bind(vm.objects)" multiple="true"
  checkmark="true" onSelect="@command('select')" nonselectableTags="*">
 . . .
</tree>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-01-28 11:28:26 +0800

Seen: 16 times

Last updated: Feb 01 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More