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
125
XamDataTree using double click to edit
posted

Dear,

There seems to be an issue with the XamDataTree using an EditorTemplate for the NodeLayout and trying to enter the node's edit mode by a mouse double click .

When you try the attached code, you will notice that if IsMouseActionEditingEnabled is set to SingleClick, everything works fine (i.e you click on a node to edit). However, when the IsMouseActionEditingEnabled is set to doubleclick you never manage to edit the node....

Can you please check what is going wrong here?

Thanks.

 

    <ig:XamDataTree x:Name="TaxonomyTree" ItemsSource="{Binding People}" NodeLineVisibility="Visible" Grid.Row="0" >

            <ig:XamDataTree.GlobalNodeLayouts>
                <ig:NodeLayout Key="VehicleNodeLayout"
                               TargetTypeName="Vehicle">

                    <ig:NodeLayout.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="NOooooooooooo"/>
                            </StackPanel>
                        </DataTemplate>
                    </ig:NodeLayout.ItemTemplate>

                    <ig:NodeLayout.EditingSettings>
                        <ig:TreeEditingSettingsOverride AllowEditing="True" IsMouseActionEditingEnabled="DoubleClick" />
                    </ig:NodeLayout.EditingSettings>

                    <ig:NodeLayout.EditorTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="YESssssssssss"/>
                            </StackPanel>
                        </DataTemplate>
                    </ig:NodeLayout.EditorTemplate>
                   
                </ig:NodeLayout>
                </ig:XamDataTree.GlobalNodeLayouts>

        </ig:XamDataTree>

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

    Thank you for your post. I have been looking into it and I tested the code you have provided both with the RTM and the latest service release of 11.2 and the RTM of 12.1 and everything seems to work ok on my side. I also attached the sample, which I tested. If the behavior you have still occurs on it, with your service release, I can suggest you download the latest one by logging to our web site and going to My IG \My Keys and Downloads.

    Looking forward for your reply.

    XamDataTreeDoubleClick.zip
Children