Announcement

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

    Is there a way to inject a widget into a TreeGrid?

    Looking for a way to inject a widget (Img in my case) into a TreeGrid. I've done this with ListGrid but obviously overriding createRecordComponent() doesn't work for TreeGrids.

    I couldn't find anything in the showcase.

    I added a separate column into the TreeGrid and trying to add an image with a handler to open a pop-up.

    Thanks!

    #2
    obviously overriding createRecordComponent() doesn't work for TreeGrids
    Actually, it does work.

    Comment


      #3
      Oops. You are right. I forgot to setShowRecordComponents(). Thank you for a quick response.

      In case someone else hits a problem overriding createRecordComponent() in either TreeGrid or ListGrid, don't forget:
      Code:
          grid.setShowRecordComponents(true);
          grid.setShowRecordComponentsByCell(true);
      It is well documented but I just simply forgot.

      Comment

      Working...
      X