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

Theme problem when create User component using RadTextbox

1 Answer 136 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 17 Jul 2007, 04:23 AM
Hi,

I try to make new component using radtextbox and compile to dll file. And I set the theme as controldefault.

Then I built new application using that dll file which contain radtextbox. I face problem. The theme is cannot be changed and i expected same theme with this application.

Please help. Thanks

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 17 Jul 2007, 05:06 PM
Hello Eriksurya,

When you inherit from a RadControl the original control themes are not automatically inherited. The good thing is that this behavior can be overridden very easily.

You should override RadControl's ThemeClassName property:

public override string ThemeClassName 
    get 
    { 
     return typeof(RadTextBox).FullName; 
    } 

In other words, here typeof(RadTextBox) stands for the type you wish your custom control to inherits its themes from.
 

Kind regards,
Mike
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TextBox
Asked by
Erik
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or