I am working on XamDatagrid grouping functionality. after every two miniutes grid data get refreshed. suppose I group grid data on one column, after grouping I expand one record. when grid data get refreshed the already expanded row get collapsed and some another row get expanded, I don't want this unwanted row expansion on grid refresh. Could some help to resolve the issue?
Hello,
I am having the same issue. I looked at your sample. However, it does not reproduce the issue of undesired layout changes. When there is a burst of updates on source records(e.g. 1000 individual updates per minute), it expands all the groups that are affected, re-positions mouse pointer away from filter text box if you try to type and grouping tab hangs when you try to add a new grouping field while the grid is being updated. What events can I use 1) to capture the current Layout and 2) to Load it back?
Please advice.
Thanks,
G
Hi Dierk,
You will need to look at my sample and use some logic to save which GroupByRows are expanded when you save the layout and then reapply that information after loading the saved layout.
I have submitted an additional product idea for you with the details that you provided, directly to our Product Management team. 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 product ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your features are chosen for development you will be notified at that time. Your reference number is PI13040129. If you need any further assistance please do not hesitate to ask.
Marianne,
Thanks for the response. I am using the 11.1 release and am experiencing the behavior that alexneb was experiencing a couple posts above. I will look to see if our data source updating may be causing this behavior.
Hi alexneb and Dierk,
I don’t believe we were ever able to identify fully the behavior that SCD team was reporting. I believe it had to do with updating or replacing the datasource and loosing which groups should be expanded but I'm afraid that's as far as I was able to understand the issue SCD team was experiencing.
It also looks like the sample that alexneb updated was using NetAdvantage for WPF 2010 Vol 2 version 10.2.20102.1014.
If you are using an older product version, I would upgrade to the latest service release of that version to see if that resolves your issue.
If you question is only about saving and loading the grid Layout and which GroupByRows are expanded, this is not part of the current SaveCustomizations and LoadCustomizations. They automatically handle layout information about field position, field width or height, grouping and sorting, filter and summary layout information but not which GroupByRows are expanded.
I modified the sample with some logic to save which GroupByRows are expanded when you save the layout and then reapply that information after loading the saved layout.
This may have its limitations and might require additional logic depending on how you are replacing/updating the data source. The code works but I’m not sure the visual affect is what you would want when adding data that might have new group.
I am experiencing the same behavior alexneb experienced in his sample project, where data updates collapse any expanded GroupByRecords. Is there any fix for this behavior?