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
1650
PreLoadRows doesn't always preload
posted

Just noticed this on a grid that is hosted on a TabItem: If the tab is not selected, no records are being created at all although RecordLoadMode is set to PreLoadRecords. I don't know whether this is behaviour is intended, but I'd say it's a bit dangerous: I iterated through all records of my grid to read the values of an unbound field. However - as PreLoadRecords didn't kick in, there were no records at all - no runtime exception but invalid result...

Is there a way to ensure that the grid reliably returns what was defined as its data source? 

Cheers,

Philipp 

Parents
  • 4850
    Verified Answer
    Offline posted

    The PreloadRecords setting should not be necessary at all. This is a bug. We had delayed the record initialization intentionally because the control doesn't need it until its gets hydrated.

    We just fixed this by also triggering the record initialization on the gets of the Records or ViewableRecords properties.

    Unfortunately there is no workaround with the build you have.

Reply Children