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
490
DataValueChanged not being called
posted

Hello,

I have a few grids that share the same data source (using unbound fields).  When I edit a value directly in the data source, DataValueChanged is usually called.  However, it is not called when the grid cell that is being updated is not visible.

Does a cell need to be visible in order to trigger DataValueChanged?  If I scroll the cell into view, it once again begins to trigger DataValueChanged.

Any suggestions?

  • 54937
    Offline posted

    By default the DataValueChangedScope is resolved to OnlyRecordsInView for effeciency. In that case the datavaluechange information is only tracked for the records in view and the history is only managed on the cell element. You can set it to AllAllocatedRecords and then the event will be fired for all records that have been allocated and the history will be stored on the cell object. So you would probably have to also set the RecordLoadMode to PreloadRecords to ensure the records are allocated.

  • 490
    posted

    Yes/no?