The server is listen to a message bus for new prices. Then it send the prices using SignalR to all connected clients.
How can I upgrade the grid so it easy to see which rows has changed? In some programs I have seen some animations effects.
1 Answer, 1 is accepted
0
Accepted
Nadezhda Tacheva
Telerik team
answered on 10 Feb 2023, 02:36 PM
Hi Martin,
As I understand you have successfully configured the Grid to update its items based on the received data and you are currently looking for an option to better indicate the changes to the user (please let me know if I am missing something).
I imagine you'd need some visual indication similar to the one we have implemented in our stocks demo: https://demos.telerik.com/blazor-financial-portfolio/real-time. See how the Price and Change cells content is flashing and changing its color depending on the price change.
You can achieve such functionality by conditionally adding CSS classes to the desired cells depending on your logic (e.g. price change in the context of the stocks).
You may incorporate a similar approach in your application. In case you are not using cell templates, you may subscribe to the OnCellRender event of the Grid to apply the desired classes. If you want to customize the whole row and not certain cells, you may use the OnRowRender event.
I hope you will find the above information useful to move forward with your application. Please let us know if any further questions appear.