Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid node disabling

    Hi,

    is there a way to disable chosen nodes of a tree grid, possibly by setting on of a record's fields to false or so?

    Thanks.

    #2
    TreeNode.setEnabled(false)

    Comment


      #3
      Originally posted by svjard
      TreeNode.setEnabled(false)
      Ok, but how do I control this from a data source?

      Comment


        #4
        It is the same thing as setting the "enabled" attribute for a given record. It depends on your exact use case of how it is determined whether a row is enabled or not. If no logic is required then pretty straightforward.

        Comment


          #5
          Originally posted by svjard
          It is the same thing as setting the "enabled" attribute for a given record. It depends on your exact use case of how it is determined whether a row is enabled or not. If no logic is required then pretty straightforward.
          Ok this seems to work. Do you know how to do the same with a PickTreeItem? Using a datasource "enabled" boolean field doesn't work here.

          Comment


            #6
            Currently no supported method for disabling items in the picktree. This would be similiar to disabling in selectitems/comboboxes and others too. I'd add to the WishList, it is a reasonable request, since menuitems can be disabled, the ability to disable others shouldn't be something new, but requires source changes.

            Comment

            Working...
            X