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

Inheriting RadComboBox

2 Answers 140 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guillaume Crétot Richert
Top achievements
Rank 1
Guillaume Crétot Richert asked on 09 Oct 2008, 08:28 PM
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 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Oct 2008, 04:06 PM
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.
0
Guillaume Crétot Richert
Top achievements
Rank 1
answered on 10 Nov 2008, 06:13 PM
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Guillaume Crétot Richert
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Guillaume Crétot Richert
Top achievements
Rank 1
Share this question
or