C1TreeMap - SelectionChanged doesn't fire

Posted by: rand.random on 28 January 2021, 7:48 pm EST

  • Posted 28 January 2021, 7:48 pm EST

    To reproduce this error, at least I believe it to be an error since eg.

    http://helpcentral.componentone.com/nethelp/Flexchartwpf/TreeMapSelection.html

    is showing that it should work.

    To reproduce the error, I took the sample from here

    \ComponentOne Samples\ComponentOne Samples\WPF.Net 5\CS\Chart\FlexChartExplorer

    And modiefied the file

    View\TreeMap.xaml

    To this:

    
    <Chart:C1TreeMap x:Name="treeMap" Grid.Row="1" MaxDepth="2" Binding="sales" BindingName="type" ChildItemsPath="items"
                     ItemsSource="{Binding DataContext.Data}" 
                     SelectionChanged="TreeMap_OnSelectionChanged"
                     SelectionMode="Point">
        <Chart:C1TreeMap.DataLabel>
            <Chart:DataLabel Content="{}{type}" Position="Center"/>
        </Chart:C1TreeMap.DataLabel>
    </Chart:C1TreeMap>
    
    

    Notice the added members SelectionChanged and SelectionMode.

    In the file

    View\TreeMap.xaml.cs

    I have added this eventhandler

    
    private void TreeMap_OnSelectionChanged(object? sender, EventArgs e)
    {
        
    }
    
    

    Now put a breakpoint in the eventhandler, open the demo and click on any item in the C1TreeMap, the breakpoint will never hit.

    My version I am currently demo-ing is 5.0.20203.34.

  • Posted 31 January 2021, 6:31 pm EST

    Hi,

    Thanks for reporting.

    This seems like a bug so I have escalated it to the devs and will revert back to you when there is any update. [Internal Tracking Id - C1CHART-1789]

    Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels