TreeView, need to cancel or not allow selectedItemChanged

Posted by: andrew.k.yohn on 12 January 2021, 7:37 am EST

  • Posted 12 January 2021, 7:37 am EST

    I have a treeView where the selectedItem is used to control an editing behavior on the rest of the page. I need to be able warn the user they have unsaved changes before I let them change the TreeView.selectedItem, and even cancel the change to leave them on the current selectedItem. I see onIsCheckedChanging and onIsCollapsedChanging, but I do not see how to cancel the selection change.
  • Replied 12 January 2021, 9:51 pm EST

    Hi Andrew,

    We are sorry but currently, there is no way to prevent the changing of the selected item in the TreeView control. I have added an enhancement request for the developers with internal tracking id 470533. I will update you once this feature is added to the control.

Need extra support?

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

Learn More

Forum Channels