Announcement

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

    Toggle cell component

    SmartClient 10.0

    Hi,

    I want to give the user the option to toggle the cell components in a grid between show and hide. Is there any way that I can do that after the grid is loaded?

    The perfect solution for me would be to have a function that runs the logic I use inside ListGrid.createRecordComponent for all the cells at any moment, but I don't know if that's possible. Any insights on the matter?

    #2
    See ListGrid.showRecordComponents - you can call invalidateRecordComponents() then refreshRecordComponents() to completely rebuild the set of recordComponents, including going from having record components to not having any, or vice versa. As you hoped, this will essentially re-run your createRecordComponent logic for every cell or row.

    Comment

    Working...
    X