Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Load On Demand Refresh
posted

I have created a custom object collection which I have bound to an UltraGrid using an UltraDataSource and implementing the Load On Demand feature.  What is the best (or accepted) way to get the grid to refresh when a property on the object changes? Right now the cell data only refreshes if something causes the cell to repaint (i.e., mouse over the cell, sort the column, etc...).  If I try to refresh the entire grid each time there is a cell update this slows performance.  What I would like to to is only refresh the cell where the data has changed.

If I instead bind the grid to a BindingList and stream updates to the bound properties the grid updates in real-time as I would expect. 

 Thanks for your help.

Parents
No Data
Reply
  • 469350
    Offline posted

    What needs to happen here is the UltraDataSource would have to send a notification to the grid to tell it that the row has been updated. It can't do this automatically, of course, in this case, because it doesn't know that the data has changed. So there would have to be a method on the UltraDataSource to allow you to trigger this notification.

    Unfortunately, there is currently no such method publicly available. This may be something of an oversight, and I recommend that you Submit an incident to Infragistics Developer Support and report this as a possible bug - although they may consider it a feature request. 

    One workaround for now would be to invalidate only the cell and not the entire grid. To do this, you would have to get a reference to the grid cell, use it's GetUIElement method to get the element and thus it's Rect, and then you could invalidate just that rect.

Children