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.

  • Posted 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.

    Regards,

    Ashwin

  • Posted 22 June 2021, 11:14 pm EST

    Any update on this request?

  • Posted 23 June 2021, 2:39 pm EST

    Hi Andrew,

    I am afraid that the issue is with the dev team. I have asked them for an update and will update you once I’ll have more information.

    ~regards

Need extra support?

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

Learn More

Forum Channels