Announcement

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

    ListGrid After Render

    Using 8.2

    What is the recommended way to execute some custom JS code after my ListGrid is done rendering (after a fetch operation adds rows)?

    Thanks

    #2
    Let me clarify my situation, in the hopes that I can get a response:

    I have a ListGrid, which performs a fetch operation to load its data. One of the columns of this list grid has clickable buttons, which are created by overriding the formatCellValue function. I need to execute JS code to dynamically modify these buttons after they are drawn. This is so I can integrate with an existing JS library that we're using (the library plays audio in the page).

    Is there a function that I could override to do this?

    Comment


      #3
      The best way to do this is probably to use setTimeout() to set a 0 millisecond timer when formatCellValue is called, then perform your action when this timer completes.

      Other approaches like overriding redraw() would not cover every situation in which individual cells might be refreshed.

      Comment

      Working...
      X