Posted 12 January 2021, 7:37 am ESTI 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.
TreeView, need to cancel or not allow selectedItemChanged
Posted by: andrew.k.yohn on 12 January 2021, 7:37 am EST
Replied 12 January 2021, 9:51 pm ESTHi 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.