Set RadTabItem IsEnabled in codeBehind

4 posts, 1 answers
  1. Julian
    Julian avatar
    30 posts
    Member since:
    Sep 2010

    Posted 17 Sep 2014 Link to this post

    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?
  2. Answer
    Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 18 Sep 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Julian
    Julian avatar
    30 posts
    Member since:
    Sep 2010

    Posted 18 Sep 2014 in reply to Kiril Vandov Link to this post

    Thanks Kiril. I'll check out your sample project and get back to this thread with my feedback.
  5. Julian
    Julian avatar
    30 posts
    Member since:
    Sep 2010

    Posted 18 Sep 2014 in reply to Kiril Vandov Link to this post

    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.
Back to Top