"Refresh Data Bindings" equivalent on a Tabulator Row #163
Unanswered
danbolinson-bt
asked this question in
Q&A
Replies: 1 comment
-
|
Can you create a minimum working example and I can take a look. It sounds like a caching issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to refresh a Tabulator row when a model is updated.
A common pattern we have is to create a Tabulator where each row is a model object and each column is some attribute (sometimes formatted or mutated). It's common that we'll have a button in the Tabulator row that will create an alert that will allow CRUD operations against that model (including to fields bound to a different column in the Tabulator row).
I'm having a very hard time getting the row to refresh after this change was made (i.e. the equivalent of
refresh_data_bindingson that whole row).Things that I've tried, all in the button event handler after the alert is closed:
cell.getRow().reformat()to force a redraw: Does nothing.cell.getRow().update(cell.getRow().getData()): Does nothing.cell.getRow().update(): Does nothing.cell.getRow().delete(); cell.getTable().addRow(model, False, cell.getRow().getPosition()): Fails, becausecell.get_model()returnsNonein the new row formatters.Has anyone run into this?
Beta Was this translation helpful? Give feedback.
All reactions