Theme problem when create User component using RadTextbox

2 posts, 0 answers
  1. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 16 Jul 2007 Link to this post


    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
  2. Mike
    Mike avatar
    640 posts

    Posted 17 Jul 2007 Link to this post

    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 
         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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top