This is a migrated thread and some comments may be shown as answers.

TabControl with Shift+Click

1 Answer 23 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 14 Mar 2019, 02:04 PM

Hello! I need to have a TabControl system where the tabs for the panes have 3 different states to them. 
- Inactive: Not selected or active

- Selected:  The tab is selected, but isn't the active pane

- Active: The tab is selected, but is also active

I want to be able to shift click multiple tabs to make them selected.  Then whatever pane has the focus, that would be the Active pane.  The reason for this is that I have a filter function that would filter that data this provided to the panes.  The user needs to be able to selected multiple tabs that would apply the filters to those selective and active panes. 

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 19 Mar 2019, 10:52 AM
Hello Jon,

Let me first point out that the RadTabControl does not support multiple selection. You can't have more than one tab selected. What comes up to my mind is to bind the RadTabControl to custom objects. In the custom class you can create custom bool properties which will represent your states. Then depending on the user action, key combination etc. you can set any of these properties to true or false. You can also use the PreviewSelectionChanged event of the RadTabControl to prevent selection of a RadTabItem when it is clicked. This way you can control the selection when an item is clicked. You can also check the following help articles:
Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TabControl
Asked by
Jon
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or