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

Decorator ignoring CssClass on controls - using masterpage

3 Answers 120 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Marty
Top achievements
Rank 1
Marty asked on 13 Jan 2009, 03:59 PM

OK.  I'm using a MasterPage setup, where I have a RFD in the masterpage applied to the div that contains my content placeholder...

Materpage snippet:

<telerik:RadFormDecorator ID="RFDContent" runat="server" DecorationZoneID="content">  
    </telerik:RadFormDecorator> 
 
<div id="content">  
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
        </asp:ContentPlaceHolder> 
    </div> 


Nothing out of the ordinary there as far as I know.  However, in my content pages, I'm using CSSClasses to format text on the pages.  Everything works fine and the RFD does its job on the controls, however, I need to be able to control the color of the text on controls the RFD is decorating: radiobuttons and checkboxes in particular. 

From what I've read, I thought that the RFD was supposed to let you specify a CSSClass on a decorated object?  Is this true?  Currently, the behavior I'm getting is that the controls in question, with a CSSClass set, load initially correctly, but once the page completes loading, their text values (which is all that the CSSClass changes) default back to the color of that RFD's selected skin.  Yes, I'm using themes to specify skins on all telerik controls that I'm using for consistency across the app, RFD included.

So, I guess the question is, is it possible to use the default skins for RFD, but still control the text colors through CSS on decorated controls in a masterpage scenario?

I hope this makes sense.  Any reply or insight would be appreciate, as I need to get this functioning properly ASAP.  Thanks.

Marty

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Jan 2009, 03:27 PM
Hello Marty,

No, RadFormDecorator does not allow you to set a CSS to be used with a specified object. It simply provides a quick and easy way to decorate multiple controls with a pre-set skin.
If needed however, you can override the style that the decorator is using for such objects. The easiest way to do this is to use FireBug, IE Dev Toolbar or a similar tool and to check what class is applied over the decorated control. For an example, you can check this thread:
http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/forms-does-not-render-on-postbacks.aspx

I hope this helps.

Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marty
Top achievements
Rank 1
answered on 19 Jan 2009, 01:37 PM
Hi Georgi,

Thank you for the answer.  I understand the purpose of the RFD now, however, if that is the case, then I'd like to suggest that perhaps in the next revs of the controls, you update the CSS of the "Default" skin for RFD to make the text of combo boxes and check boxes readable, if those controls happen to be embedded on a RadPanelBar, skinned with the default skin as well.

I have an example of this in an image from my app, however, I do not have anywhere to host the image. So if you're interested in seeing it, perhaps I can email it to you guys.  Up to you.

Thanks again,

Marty
0
Georgi Tunev
Telerik team
answered on 19 Jan 2009, 01:48 PM
Sure thing Marty,

Just open a new support ticket and send me the image along with with a reference to this thread. I will check it and forward it to our design team.



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
FormDecorator
Asked by
Marty
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Marty
Top achievements
Rank 1
Share this question
or