Theme and inheritance

3 posts, 0 answers
  1. jpl
    jpl avatar
    8 posts
    Member since:
    Aug 2008

    Posted 22 Jul 2009 Link to this post


    may be this question has been solved here but I cannot find it in the different threads. I have a class deriving from RadGridView. For example, say the class Grid in the test namespace. In design mode, the ThemeClassName property is set to the actual class name by the designer, so test.Grid in the example. But the problem is that I cannot find the theme names I want in  the drop down list. If I force the ThemeClassName property to "Telerik.WinControls.UI.RadGridView", the drop down list is filled with the right theme names but as soon as I save the file the designer reset the ThemeClassName to test.Grid, as I can see it in the file.
    So I found the way to force ThemeClassName"Telerik.WinControls.UI.RadGridView" in the test.Grid constructor but it works in run time only; I cannot see the theme names in design mode.
    What is the good way to proceed to apply themes to a derived class ?

  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 24 Jul 2009 Link to this post

    Hi _,

    Please refer to the following Knowledge Base article which contains the answer to your question: Inherit themes from RadControls.
    If you have additional questions, feel free to contact me.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. jpl
    jpl avatar
    8 posts
    Member since:
    Aug 2008

    Posted 25 Jul 2009 Link to this post

    Thank you Nikolay for your reply.
Back to Top