Hello! I am trying to use the PersistenceManager to save the state of an XamDataGrid, but keep getting a StackOverflowException when I try to load the persisted state.
This seems to be a recurring issue:
http://www.infragistics.com/community/forums/p/69561/352475.aspx
http://www.infragistics.com/community/forums/t/63391.aspx
One of the posts suggested the SaveCustomization/LoadCustomization methods, but they don't appear to store all the group expanded/collapsed information, which is what I was hoping to achieve.
Thanks, Ed
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igWPF="http://schemas.infragistics.com/xaml/wpf" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="20" /> </Grid.RowDefinitions> <igWPF:XamDataGrid x:Name="DataGrid" Grid.Row="0" BindToSampleData="True" /> <Button x:Name="Button" Grid.Row="1" Content="Persist" /> </Grid></Window>
public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); this.Button.Command = new DelegateCommand<XamDataGrid>(PersistState); this.Button.CommandParameter = this.DataGrid; } public void PersistState(XamDataGrid grid) { MemoryStream ms = PersistenceManager.Save(grid); PersistenceManager.Load(grid, ms); //StackOverflowException here } }
Hello Rüdiger,In order the persisting of the expanded and collapsed state of records to receive more attention and be prioritized accordingly, I would suggest you to log it at http://ideas.infragistics.com/.Submitting an idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.Thank you in advance to submitting your product idea.
Well its now End of Dec 2016 and Iam still getting the StackOverflow Error. Thats really disappointing (using V 16.2)
Hello Ed,
I have logged this as a new product idea. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI13030118.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thanks, I'll be implementing my own serialization for the grid state.
>The Persistence Framework does not provide full support for the controls that are specific to the NetAdvantage for WPF and are not cross-platforms controls.
Are there plans to either expand the Persistence Framework's functionality for WPF controls, or to add an analagous framework for WPF?
Thanks,
Ed
I am just checking your progress on the issue.
If you have any other questions on the matter, please feel free to ask.