Announcement

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

    I need to add more functionalities to TreeGrid

    HI

    I need to add more functionalities to tree grid component.

    1) need to display more than one icon for individual nodes dynamically.

    2) when clicking on a record in Treegrid should display a number in front of the record dynamically.

    3) need to display buttons for individual nodes in a tree grid

    I went through all the examples given in smartclient sdk but couldn't find any thing related to this requirement . Is this functionalities possible on a treegrid? if so can you give me an examples for them

    Thanks

    Regards
    Shivantha123

    #2
    Hi Shivantha123,

    1) the TreeGrid supports an additional, optional icon via treeGrid.getExtraIcon().

    2) you can change the value stored in the record on the recordClick event and call refreshCell() to update the display

    3) to create a button in a grid column you generally use formatter APIs like field.formatCellValue to render the button and use field.cellClick to trigger the button's action. See for example these users discussing this approach.

    Comment


      #3
      another enhancement needed for a List grid

      Hi

      thanks for the reply
      If I want to trigger a listener for list grid reorder function, how can I do it in a list grid?

      Regards
      Shivantha

      Comment


        #4
        If you mean drag and drop reorder, you could override recordDrop, call Super, and then proceed with whatever action you want.

        Comment

        Working...
        X