Unsure how to disable some C1TreeView interaction

Posted by: jacob.a.buchanan6.ctr on 15 May 2026, 11:39 am EST

    • Post Options:
    • Link

    Posted 15 May 2026, 11:39 am EST

    Some extra notes: I am currently using C1 version 4.6.2025.1.877

    I can update to a new version if this will solve the issue, but since I am on a closed network it can be difficult to get new releases.

    I have a C1TreeView with a few different DataTemplates. One of these HierachicalDataTemplates has two C1NumericBox in it. The template essentially looks like this:

    There are two main issues i’ve yet to work out:

    1. Clicking the arrows too fast to increment the value in the numeric box counts as a double-click on the header which collapses/expands the TreeViewItem. I added a PreviewMouseDoubleClick listener on C1TreeView to mark e.Handled = true, but then this results in some of my interactions with the numeric box not going through. Can I just disable the interaction that double-clicking a header will collapse/expand the item?

    2. When typing into one of the numeric boxes it selects the C1TreeViewItem despite me setting the SelectionMode to None. I had previously set it to None since anytime I would click into one of my C1NumericBox it would select/deselect the row and update my focus. I just want to fully disallow selection in all cases.

  • Posted 19 May 2026, 2:21 am EST

    Hi Jacob,

    Apologies for the delay in our response.

    We created a sample project based on the details you shared and were able to reproduce both behaviors you mentioned. We have shared all the findings with the development team to get their insights and will keep you updated as soon as we receive further information.

    [Internal Tracking ID: C1XAML-39714]

    Best Regards,

    Kartik

  • Posted 23 July 2026, 3:13 am EST

    Hi Jacob,

    We apologize for the delay in responding.

    The development team investigated these behaviors and shared the following insights:

    1. There is no direct way to disable the expand/collapse behavior of nodes on double-click. The only available workaround is the one you suggested i.e. handling the PreviewMouseDoubleClick event and manually preserving the interactions of the C1NumericBox. If you face any specific issues with our implementation, please let us know.

    2. This behavior occurs because the C1NumericBox handles the keyboard interaction when the AutoSearch and KeyboardNavigation properties are enabled, which they are by default. You can simply disable these properties to allow the C1NumericBox to receive the key presses correctly.

    We have attached a sample project for your reference - TreeViewCustomNodes.zip

    Best Regards,

    Kartik

  • Posted 23 July 2026, 11:39 am EST

    Thanks that is much better! It was a pain using the numeric box without being able to type in a value.

Need extra support?

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

Learn More

Forum Channels