Issues with RadTextBoxes and Themes

6 posts, 0 answers
  1. Ryan
    Ryan avatar
    25 posts
    Member since:
    Jul 2008

    Posted 12 Sep 2008 Link to this post

    Are there any known issues with radtextboxes not taking themes as other cotrols do?

    My radtextboxes are not displaying themes while other types of controls do.

    Ryan
  2. Dan
    Dan avatar
    6 posts
    Member since:
    Jul 2008

    Posted 12 Sep 2008 Link to this post

    I am seeing this too except the themes show up fine until you put them in a panel or a radtabstrip content panel.  once the text box is in there it ignores themes while other rad controls like buttons work jsut fine in a panel.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 16 Sep 2008 Link to this post

    Hi guys,

    We have a known issue concerning the initial theming of RadTextBox at design-time. However, it is working correctly at run-time and you should experience no difficulties. In addition, if you close and then reopen the Visual Studio instance with the solution, the theme will be applied at design as well.

    Dan, I am not aware of an issue related to where the RadTextBox is in the controls hierarchy. Therefore, please open a new support ticket and send me a sample application which demonstrates the behavior.

    I am attaching my sample project to demonstrate the correct behavior at run-time.
     

    Best wishes,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Dan
    Dan avatar
    6 posts
    Member since:
    Jul 2008

    Posted 18 Sep 2008 Link to this post

    FYI Fellow forum readers:
    I got a solution to this issue through a support ticket.  The sample app above is in C# but the problem only shows up in VB. Thought you all might like to know about the fix that solved my problem.  THANKS TELERIK!!!


    ----------------------------------------------
    I was able to reproduce issue. It is related to the place in the Form1.Designer.vb file where the code for the RadThemeManager is serialized. This issue concerns only RadTextBox and it does not seem to happen to other controls. In order to make the themes work, you should cut/paste the RadThemeManager serialized code just before the serialized code for the form (e.g. almost at the end of the designer file).

    I updated your Telerik points for reporting the issue. If you have additional questions, feel free to contact me.

    Kind regards,
    Nikolay
    the Telerik team
  6. Maarten
    Maarten avatar
    2 posts
    Member since:
    Sep 2008

    Posted 19 Sep 2008 Link to this post

    I used the example in RadTextBoxThemes.rar. In this example I deleted the radThemeManager1 on Form1 and added the following code to the Form1_Load eventhandler:

                ThemeResolutionService.RegisterThemeFromStorage(ThemeStorageType.Resource, "RadTextBoxThemes.RadTextBoxCustom.xml");  
                ThemeResolutionService.ApplicationThemeName = "Custom"

    Then the theme disappears in design-time and run-time. Do I have to change more things?
  7. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 19 Sep 2008 Link to this post

    Hello Maarten,

    Thank you for writing.

    Actually, you should not delete RadThemeManager. It is necessary to manage and applying the custom theme files. You have to add ElementType="Telerik.WinControls.UI.RadTextBoxElement" to the RadStylesheetRelation in the XML theme's file and your ThemeResolutionService code. Please, find attached the updated example.

    Do not hesitate to contact me again, if you have other questions.

    All the best,
    Martin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready