Announcement

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

    Custom Icon Padding For TreeGrid Folders

    Hi Isomorphic,

    I have disabled the folder icon for a TreeGrid; however, the gap between the +/- icons and the folder title is a little too wide. Is there a way to reduce the gap for just folder nodes? Setting the icon padding for the TreeGrid to zero works, but I would like the padding to be used for regular nodes.

    Setting the "iconPadding" attribute for a TreeNode seems to be ignored.

    Thanks

    #2
    How specifically did you turn off node/folder icons? Set folderIcon to null, or some other approach?

    Comment


      #3
      I set folderIcon to null.

      Comment


        #4
        Thanks for the follow up.
        One more question on this - which build/branch are you using?

        Regards
        Isomorphic Software

        Comment


          #5
          I'm using the following:

          SmartClient Version: v12.0p_2019-12-21/Pro Deployment (built 2019-12-21)

          Thanks

          Comment


            #6
            We've gone ahead and added support for some new attributes to simplify this area.
            As of the next nightly build, you should be able to use treeGrid.showNodeIcons (boolean) and showFolderIcons (boolean) to explicitly suppress icons for all nodes, or just folders, and you can provide custom icon padding via iconPadding, folderIconPadding, or node.iconPadding.

            See the documentation for more details on these properties

            These changes will be present in all 12.x branches

            Regards
            Isomorphic Software

            Comment


              #7
              This worked perfectly. Thanks for adding it!

              Comment

              Working...
              X