https://dojo.telerik.com/yBSdUQYS demonstrates the issue:
When a grid detail row is expanded, and pushUpdate() is called on it, the row collapses.
What is expected is for the grid row to remain in its prior state (expanded or collapsed.)
Until this is fixed, is there a work-around, other than manually re-expanding the detail row(s)? This is not a feasible work-around in which multiple nested grid rows are collapses and re-expanded, as this causes the UI to jump unexpectedly for the user.
Hi Matt,
Generally, updating Grid cells requires their refreshing. Most of the Grids do not have nested detail Grid and will not have problems with being refreshed.
Regards,
Nikolay
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Thanks. The second link Refresh Particular Rows without Rendering the Entire Grid satisfies this use case.
----
On a related note, what is the primary use case(s) in which one would prefer pushUpdate() to refresh the whole grid, causing expanded detail rows to collapse, rather than just update the individual row?
In my particular case I have a websocket that receives asynchronous grid updates made by other users. It would appear that the pushUpdate() function would be perfect for this, except for the fact that it forces the entire grid to refresh, rather than just the specific row that was updated.
Hello Matt,
This behavior is expected. The pushUpdate() method refreshes the whole Grid, which results in it being collapsed.
As possible solutions to this, I can suggest:
1. Persist expanded rows:
https://docs.telerik.com/kendo-ui/knowledge-base/grid-persist-expanded-rows
Or
2. Refresh a row without re-rendering the whole Grid:
https://docs.telerik.com/kendo-ui/knowledge-base/grid-update-particular-row-without-refresh
Please let me know if you have any questions.
Regards,
Nikolay
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.