Decorator ignoring CssClass on controls - using masterpage

4 posts, 0 answers
  1. Marty
    Marty avatar
    61 posts
    Member since:
    Oct 2008

    Posted 13 Jan 2009 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Jan 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marty
    Marty avatar
    61 posts
    Member since:
    Oct 2008

    Posted 19 Jan 2009 Link to this post

    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
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 Jan 2009 Link to this post

    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.
Back to Top