Hi,
I'm saving by PersistenceMaganer on my GridView but when I try to reload it missed converter and formatstring in some column.
When reloading it doesn't apply Converter called FuoriCorsoConverter and StringFormat of "Last Update" column, durthermore other column with StringFormat is correctly applyed instead.
Why?
Codes:
//Portions of code for savingPersistenceManager manager = new PersistenceManager();var streamGridView = manager.Save(this.DocumentHostGridView);//[...]//Portion of code for loading//[...]private void LoadPersonalizzazione(){ //Personlizzazione del docking var stream = ViewModel.CaricaPersonalizzazione(this.GetType().ToString()); //ref. UserControl.xaml.cs if (stream != null) this.MainRadDocking.LoadLayout(stream); //Personalizzazione della gridview principale MemoryStream streamGridView = ViewModel.CaricaPersonalizzazioneControllo(this.GetType().ToString(), this.DocumentHostGridView.Name); if (streamGridView != null) { streamGridView.Position = 0L; PersistenceManager manager = new PersistenceManager(); manager.Load(this.DocumentHostGridView, streamGridView); }}//[...]XAML of columns
<telerik:GridViewDataColumn Header="Last Update" DataMemberBinding="{Binding UltimoAggiornamento, StringFormat={}{0:dd/MM/yyyy}}"/><telerik:GridViewImageColumn Header="Out" DataMemberBinding="{Binding FuoriCorso, Converter={StaticResource FuoriCorsoConverter}}"/>