New to Telerik UI for WPF? Download free 30-day trial

How to Control the Selection When the SelectedItem is Removed

The RadTabControl allows you to control the selection behavior of the control in case the SelectedItem is removed.

SelectedItemRemoveBehaviour property

The SelectedItemRemoveBehaviour property allows you to choose which RadTabItem should be selected next in case the currently selected RadTabItem is removed. The property is enumeration of type SelectedItemRemoveBehaviour and it exposes the following members:

  • SelectNone - use it to set the RadTabControl.SelectedItem to null

  • SelectFirst - use it to select the first item of the RadTabControl.Items collection

  • SelectLast - use it to select the last item of the RadTabControl.Items collection

  • SelectPrevious - use it to select the RadTabItem positioned before the SelectedItem in the RadTabControl.Items collection

  • SelectNext - use it to select the RadTabItem positioned after the SelectedItem in the RadTabControl.Items collection

See Also

In this article