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

Set RadTabItem IsEnabled in codeBehind

3 Answers 99 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 17 Sep 2014, 08:37 PM
I have a comboBox on my page after this comboBox i have a Telerik:RadTabControl with 3 tabs.

Upon loading this particular window the 3 Tabs pf tje RadTabControl are disabled. If the change event of the comboBox when a value has been selected I want to enable the 3 tabs.

How do I do this?

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Vandov
Telerik team
answered on 18 Sep 2014, 02:00 PM
Hello Julian,

In order to do that you could use the SelectionChanged event of the RadComboBox and change the IsEnabled property of the RadTabControl base on some logic. I have attached a sample project which uses the SelectionChanged event of the combo and based on its content enables or disables the RadTabControl.

I hope this information help.

Kind regards,
Kiril Vandov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Julian
Top achievements
Rank 1
answered on 18 Sep 2014, 02:02 PM
Thanks Kiril. I'll check out your sample project and get back to this thread with my feedback.
0
Julian
Top achievements
Rank 1
answered on 18 Sep 2014, 02:17 PM
Strange. I had tried setting the IsEnabled in the comboBox change event just like you show and it was not recognizing my TabControl. Today it is? Who knows. Thanks for the response.
Tags
TabControl
Asked by
Julian
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Julian
Top achievements
Rank 1
Share this question
or