Inheriting RadComboBox

3 posts, 0 answers
  1. Guillaume Crétot Richert
    Guillaume Crétot Richert avatar
    33 posts
    Member since:
    Oct 2008

    Posted 09 Oct 2008 Link to this post

    Azdravei (and apologies for mangling your words),

    I am trying to inherit from the RadComboBox in my winform project. For starters, I simply created a class that inherited the RadComboBox and placed an instance of it on a form, right next to the original, uninherited RadComboBox. The two controls look radically different, with my inherited version looking like a broken misfit unworthy of the name Telerik.

    I would like to know how to properly inherit and extend Rad controls. In my case, I simply want to add a field and property to the ComboBox to remember its previous SelectedIndex.

    Thank you,
    Guillaume
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 10 Oct 2008 Link to this post

    Bonjour Guillaume Crétot Richert, :)

    Thank you for your interest in our products.

    When you inherit a RadControl, you should override the ThemeClassName property in order to inherit the theming of the control as well. For more information please refer to the following Knowledge Base article: Inherit themes from RadControls.

    I hope this helps. If you need any further assistance, feel free to contact me.

     
    Greetings,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Guillaume Crétot Richert
    Guillaume Crétot Richert avatar
    33 posts
    Member since:
    Oct 2008

    Posted 10 Nov 2008 Link to this post

    Hi Nikolay,

    I apologize for not answering sooner. I have been sidetracked in my implementation of my solution so that I have not had to deal with inheritance in a while. I assure you as soon as I try your solution, I will post a reply confirming that it works.

    Thank you again for your time.
    Guillaume.
Back to Top