Hi,
I am using the XamGrid v10.2 with the latest service release. I want to persist the grid settings with the PersistenceManager. This works fine, in case of just one band is displayed. But in case of two bands are displayed at restore the all the cells are empty, but the record-count is like expected.
When I comment the definition of the second band out at XAML the persistence save and load procedure works as expected. My data is structured that each top level record will contain four second level records which shall be displayed at the second band.
What I am doing wrong here? I don't really need to store the settings of the child-band therefore I also can exclude this. I tried around with the PersistenceSettings, but I only can exclude each column setting :-(
Can somebody help?
RegardsJohannes
This is now logged in Development (ref issue 37084), and you will be notified through a support case when this issue is fixed.
Hi Johannes,
We're definitely going to look into the issue, and there will be a bug case created so that you'll be notified of the resolution.
I'm glad the workaround will work for you for now.
-SteveZ
Hi Steve,
sorry for my late reply. We got a lightning strike over here and all the telephone lines were cut off. So I spent some time with other things.
I tried your suggestion and it principially works. Together with your suggestion to detach the ItemsSource and attach again after load the grid will also show the content of the TemplateColumn correctly.
I will spent some more time on this and will mark your suggestion as answer when I do no found any more.
Nevertheless: Do you have opened a bug case or shall I have to live with the workaround?
Johannes
So in Silverlight, its impossible for us to actually save certain types, such as DataTemplate, however we do provide a workaround for situations like that. Specifically, if you define your DataTemplate in your App.Xaml, and put an attached property on it, that will allow us to look it up, we can store that identifier, and reload the DataTemplate from the app.xaml when it loads back up.
The following help article explains this in more detail.
http://help.infragistics.com/NetAdvantage/Silverlight/2010.2/CLR4.0/?page=Persistence_Identifier.html
I had to add some additional information which you can add to the bug reporting:
With your provided workaround it isn't possible to restore the TemplateColumns. At this type of column the cells still remains empty. Also in case of there is a ToolTipContentTemplate specified for a column after the Load it doesn't gets loaded.
For the moment I can live with the workaround, but finally I need to be able to personalize also TemplateColumns. Do you know any way to exclude the "DataTemplate" specification of the DataTemplate which makes the trouble?
Regards,Johannes