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

RadComboBox Focused Style

1 Answer 122 Views
Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Bernard Myers
Top achievements
Rank 1
Bernard Myers asked on 17 Mar 2011, 03:22 PM

Ver 2010.3.1317.35, IE8, Windows 7 Skin, Windows 7 x64 OS

I'm using a simple border and background colour to highlight the focused fields in my application via the skin file:-

 

<telerik:RadTextBox runat="server" >
    <FocusedStyle BackColor="#EEF6FF" BorderColor="Red" /> 
</telerik:RadTextBox>

Unfortunately this option isn't implemented in all controls (which would be the ideal solution) so I have used the StyleBuilder to try and implement a simialr function for the RadComboBox....

Unfortunately No matter what I do I cannot seem to get the Focused RadComnoBox to be the same height as the normal one making the screen jump up and down as I move from Combo Boxes to Text boxes.

I've added a Border of 1 in red to the focused control which works fine but when I add a transparent border of 1 to the normal control it just seems to ignore it? It look correct in Style Builder but when I save and download it then reload from the zip it has removed the border? Any ideas?


Thanks

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 23 Mar 2011, 09:34 AM
Hi Bernard,

RadComboBox uses background images for its styling and it can't be resized vertically that easily. You will need to edit the background sprite and the skin to change the height, check this guide for more information how to do that. Alternatively you can use the Simple skin which is styled with simple borders and background colors and can be resized freely (though you will still need to override the height with CSS). Also in the Simple skin you can override the borders to any color you want. If you still have problems with this, file a support ticket and send a sample project and we will help you fix it.

Kind regards,
Kamen Bundev
the Telerik team
Tags
Visual Style Builder
Asked by
Bernard Myers
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or