Hi,
I just upgraded to the latest WPF11.2 Service Release 2125.
I have date levels as follows:
HierarchyDescriptor dateTimeDescriptor = new HierarchyDescriptor { AppliesToPropertiesOfType = typeof(DateTime) }; int iDates = 1; dateTimeDescriptor.AddLevel<DateTime>(dt => "AllPeriods", "All Periods"); if (IncludeYears) { dateTimeDescriptor.AddLevel<DateTime>(dt => dt.Year, "Years"); iDates++; } if (IncludeSemesters) { dateTimeDescriptor.AddLevel<DateTime>(dt => dt.SemesterShort(), "Semesters"); iDates++; } dateTimeDescriptor.AddLevel<DateTime>(dt => dt.Date, "Dates");
Also I added to default sort directions:
LevelSortDirection d = new LevelSortDirection(); d.LevelUniqueName = "AllPeriods"; d.SortDirection = ListSortDirection.Ascending; flatDataSource.LevelDefaultSortDirections.Add(d);
What am I doing wrong.
Thanks
Sangeetha
Thanks Plamen. That worked perfectly.
Hello,
The level unique name for FlatDataSource uses this pattern [DimensionName].[HierarchyName].[LevelName].
Plamen.