Hello,
We have a very complex application using the pivot grid that Todor helped us with a couple of years ago and we are now improving it. One of the things I have tried to do is change the flatDataSource.DimensionsGenerationMode to be DimensionsGenerationMode.Metadata instead of the default Property value so we can start hiding properties we do not want to show. We are using 12.2 with the latest service release.
I have created the hierarchy level descriptors etc but for some reason we are not getting the flatDataSource.Rows.CollectionChanging event when we make the change. Before the change was made we would the event and we get rows in the Rows collection of the flatDataSource.OlapViewModel.Rows. After the change we do not get either.
I must be doing something wrong but Im not sure what exactly Im missing. Everthing is done in the code (not the XAML) and the code is quite large so no point in me posting it up here without some guidance as to what you need.
Perhaps you already have some thoughts on what I might have missed.
Many thanks,Doug ReesRalph Lauren.
Doug,
One quick question, Can I use something like the following for SourcePropertyName, where RiskEodModel is a property(class) under the parent class used as datasource ? Thanks.
var prefix = "RiskEodModel.";
cubeMetadata.DimensionSettings.Add(new DimensionMetadata()
{
SourcePropertyName = prefix + "PositionId",
DisplayName = "Position Info",
DimensionType = DimensionType.Dimension
});
Hello Doug,
Thank you for your reply. I am very glad that my sample application was helpful for you. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Your sample has helped me figure out what was happening. My DimensionMetadata names were not exactly matching those generated automatically when in property mode so our setting of the Rows collection in the datasource were not finding valid row names. Once I got the names to align it worked again.
Thanks,
Doug
Thank you for your post. I have been looking into your post and I have created a sample application to test the issue that you have described. I have created a FlatDataSource with DimensionGenerationMode set to Metadata and when I add a dimension to the Rows of the XamPivotGrid or the XamPivotDataSelector, the CollectionChanging event of the Rows collection of the FlatDataSouruce is fired. I have tested the sample application with both the RTM and the latest service release of version 12.2 and the event is firing. I am attaching my sample application.
Would you please let me know if you can reproduce the same behavior using the sample application and if not, would you please modify it to show the issue, so I will be able to research what might be the reason for it more accurately?
Looking forward to hearing from you.