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

Issues with RadTextBoxes and Themes

5 Answers 116 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 12 Sep 2008, 03:54 PM
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

5 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 12 Sep 2008, 08:15 PM
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.
0
Nikolay
Telerik team
answered on 16 Sep 2008, 09:43 AM
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.
0
Dan
Top achievements
Rank 1
answered on 18 Sep 2008, 03:04 PM
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
0
Maarten
Top achievements
Rank 1
answered on 19 Sep 2008, 08:57 AM

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?
0
Martin Vasilev
Telerik team
answered on 19 Sep 2008, 04:07 PM
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.
Tags
Themes and Visual Style Builder
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Nikolay
Telerik team
Maarten
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or