What is the proper event or technique to distinguish between A and B?
2 Answers, 1 is accepted
answered on 14 Jan 2021, 04:19 PM
The tab is closed when you close it through the close button. When you drag a tab into a new window, the tab is removed from the RadTabbedFormControl.Tabs collection and become a stand-alone tabbed form. In both cases, the tab is removed from the RadTabbedFormControl.Tabs collection and it is expected the TabRemoving and TabRemoved events to get triggered.
If you do not want to be able to drag tabs from the tabbed form you can specify its ItemDragMode:
However, if you want to be able to close tabs as well as drag them out the tabbed form and know which is the reason for firing the TabRemoving\TabRemoved events I can suggest using the RadTabbedFormDragDropService in order to help determine the reason. Please refer to the following code snippet:
I hope this information helps. Should you have further questions do not hesitate to contact me.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.