Announcement

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

    Getting rid of plus signs if it's the last node.

    I am using the treeGrid in SmartGWTEE 2.3 with a DataSource. How do I have it not show the plus sign if there are no children?

    Regards,
    Brant

    #2
    If it's intended to be a leaf, return isFolder:false in the data. If it's expected to an empty folder, explicitly provide an empty Array or List for the children property.

    Comment


      #3
      How do I get isFolder:false in the data? I am passing a list called resultList which is a list of objects called EmployeeDTO, do I put a field on that object called isFolder and set that to false?

      Comment


        #4
        Yes, however, the fact that you have something called EmployeeDTO suggests that you may be using the product inefficiently - see this article.

        Comment


          #5
          That worked great! Thanks

          The reason I'm using DTO's is because I am using OFBiz and it's entity engine (not hibernate). It looks as though the only way to would be to use sql for a direct connection to the db which is not what we want. I use the objects in session and then commit them to the db when changes are made.

          Comment

          Working...
          X