Hi there
Another issue with 7.2 that's not resolved yet: Sometimes it appears that certain cells are being skipped during rendering. I assume this the same or related to the issue that causes records to be rendered with the wrong data (e.g. record X displays a single cell value of a styled cell that belongs to record Y). As far as I can tell, it only affects templated cells that use a CellValuePresenter but I wouldn't bet my life on it.
Here's a sample screenshot of the issue:
Some more information:
Btw, can you comment on the release date for all these (wonderful ) fixes?
That's great, thanks very much (out of convenience, was posting as another user (mattwaldron -- was cached in IE) -- got off my tuckus a minute ago and registered).
Thx again... D
Matt,
The reason that the property wasn't in the docs is because it was something that was added after the initial release of 7.1.
One of the problems that we had encountered with the initial release was that scrolling perfomance was not good in many scenarios (e.g. when there was a significant number of cells per record). This was caused by the amount of time it took to hydrate new elements that would make up the visual tree for each new cell and record as they were scrolled into view, and then these elements were discarded as old records were scrolled out of view.
Therefore, in the last major hotfix we added the concept of element recycling, which is turned on by default. This dramatically improved scrolling performance since we were reusing existing element trees, and just changing their DataContext (i.e the DataContext of a RecordPresenter is its associated Record object).
The problem that you encountered, that we have since fixed, was that we weren't synching up the IsAlternate property on the RecordPresenter when its DataContext changed. By turning off element recycling for records you eliminate the problem.
We did have the foresight to add 2 properties to control this behavior RecordContainerGenerationMode and CellContainerGenerationMode. Here is what the enumeration values mean:
I hope this helps.
We are having similar issues with rendering (alternate styled rows not showing right, etc.) that seem to get solved by changing the RecordContainerGenerationMode, but I can't find this property in the online docs. Can you explain the modes?
Thx
Do you notice any binding errors in the output window?
One thing you might want to try is to change the bindings slightly in the CellValuePresenter styles to take advantage of the fact that the DataContext of the CVP is set to the DataRecord. e.g.
instead of
<Image Source="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Record.DataItem.EditStatus,Converter={StaticResource Control_EditStatusToImageConverter}}"
try this:
<Image Source="{Binding Path=(DataItem).EditStatus, Converter={StaticResource Control_EditStatusToImageConverter}}"