Prevent Skin from Applying to Formview

4 posts, 1 answers
  1. Ron
    Ron avatar
    86 posts
    Member since:
    Sep 2009

    Posted 11 Jan 2012 Link to this post

    Hello,

    I want the GridView and DetailsView to have a default skin applied via the FormDecorator, but I do not want it to apply to the FormView.  Currently it appears that you have to have it apply to all three controls or none of them.  I would rather not have to set the skin on each control individually to accomplish this as I want the GridView and DetailsView to be dynamic and change by simply changing the default skin setting on the FormDecorator.

    Lastly, the FormDecorator control in on my master page.  Is there anyway to accomplish excluding FormView from having the skin specified in the FormDecorator applying to it?

    Thanks,
    Ron
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 13 Jan 2012 Link to this post

    Ron:

    Take a look at the How to exclude specific controls from RadDecorator forum thread for detailed insights on your issue. At the bottom of the thread there is a possible solution of setting a CSSClass to the FormView control that will prevent the RadFormDecorator from applying itself to that object.

    Hope this helps!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 16 Jan 2012 Link to this post

    Hello,

    Putting CssClass will prevent the element to be decorated. You could also use decoration zone ID property: Partial Page Decoration in order to have some parts of the page without decoration or with only specific elements decorated.

    Greetings,
    Bozhidar
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  5. Ron
    Ron avatar
    86 posts
    Member since:
    Sep 2009

    Posted 17 Jan 2012 Link to this post

    using the partial page decoration or zone IDs were not feasable in my situation, however, applying the CSSClass to the control was the way to go.  Thanks.
Back to Top