Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
Unchecking of member causes problem in "Expand hierarchies" example
posted
Hi,
There is an example “Expand hierarchies” for “xamPivotGrid”
 
If in the combo box “Expand to Years” is selected  and then “Expand” is executed, the years “2006”,”2007”,”2008”,”20009” will appear in the query.
Then the member “2007” is unchecked from the tree control on “Date”
 
The member “2007” will disappear from table.
 
Select “Expand to Half-Years” and press “Expand”.
The first member “2008” will be expanded, but the members “2009” and “2006”will not.
I think that the members ”2009” and “2006” should be expanded too. If the step with the unchecking of “2007” member is skipped, all members will be expanded.
How this can be fixed?
 
Regards,
Plamen
 
Parents
  • 2050
    Verified Answer
    Offline posted

    HI,

    Try replacing this line:

    filterMember.IsExpanded = true;

    with this:

    this.Dispatcher.BeginInvoke(() => { filterMember.IsExpanded = true; });

    There are two occurrences of it in the ExpandToLevelCB.xaml.cs file.

    This should fix your problem. I'm afraid, however that in more complex scenarios with lots of levels and lots of different selections there might be similar problems. Those are fixed in the 11.1 release version of the product, which is coming soon.

    I hope this is helpful.

    All the best,

    Atanas

     

Reply Children
No Data