Hello, I am wondering if there is a known issue with items within a DataTemplate not persisting in Persistence Framework? I have a WPF application that has many RadGridViews. I use PersistenceManager to load and save grid settings from isolated storage. Persisting column orders and column sizes work perfectly on all of my grids. However there is one grid that uses a DataTemplate to contain a button for one column. Whenever the settings for this grid are saved and then reloaded the buttons disappear. Everything else on the grid persists, but the button is gone. I tried it on a simple test project to make sure that it wasn't some sort of binding issue and the problem remains. Here is the Test grid I try to persist.
<
telerik:RadGridView
x:Name
=
"grdTest1"
Margin
=
"0,5,0,0"
IsFilteringAllowed
=
"True"
Background
=
"Blue"
AlternateRowBackground
=
"DarkGray"
AlternationCount
=
"2"
IsReadOnly
=
"True"
AutoGenerateColumns
=
"False"
Visibility
=
"Visible"
MaxHeight
=
"250"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Button
Content
=
"Test"
HorizontalContentAlignment
=
"Center"
VerticalContentAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"First Name"
DataMemberBinding
=
"{Binding FirstName}"
/>
<
telerik:GridViewDataColumn
Header
=
"Last Name"
DataMemberBinding
=
"{Binding LastName}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
When loaded the first time the button is there. If I close and reopen (Save and Load) the button disappears. If I manually delete the persistence manager file from isolated storage and reload the button is there. The rest of the settings will persist which is great, but the button does not. Please let me know if there is a way to use persistence framework on a grid in this scenario.
Thanks,
Michael.