[SOLVED ]Help on QTable rowNumber refresh #8737
-
Hi community! I’m creating a Crud component based on QTable and sometimes can be Server side requests, and sometimes simple pagination. When i do
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Try to re-tender your qtable after deleting the property using |
Beta Was this translation helpful? Give feedback.
-
const { rowsNumber, ...pagination } = this.pagination
this.pagination = pagination New reference means it's guaranteed that Vue detects the change. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately qtable still wont go out of serverside mode and continue to call request on pagination object change unless it's forced to re-render, hence my suggestion for a key change. https://codepen.io/metalsadman/pen/PoWmpLP?editors=1010 |
Beta Was this translation helpful? Give feedback.
-
Thank you guys! Both solutions work like charm |
Beta Was this translation helpful? Give feedback.
New reference means it's guaranteed that Vue detects the change.