Forcing FormDecorator to include css for control type

2 posts, 0 answers
  1. Matt
    Matt avatar
    1 posts
    Member since:
    Nov 2009

    Posted 12 Nov 2009 Link to this post

    I'm creating a plain html table that isn't really suitable for a RadGrid, but I'd like to be able to use the FormDecorator to style my table as if it were a RadGrid.

    I've played around with the css classes on the table, and it seems to look fine when I have a RadGrid accompanying the table - however, if I remove the RadGrid, the stylesheet for the RadGrid is no longer included, leading me to believe that the FormDecorator will only include css files for the controls found on that page.  No RadGrid, no RadGrid css.

    Is it possible to force the FormDecorator to include the RadGrid css file even if there isn't a RadGrid on the page?  At the moment I'm creating a RadGrid and hiding it in a hidden div, but I'd prefer a solution where I can remove the RadGrid entirely.

    Anyone know if this is possible?

  2. Martin
    Martin avatar
    585 posts

    Posted 13 Nov 2009 Link to this post

    Hello Matt,

    RadFormDecorator can be used to style HTML form controls, and it is not meant to provide styling for tables. You have been probably mislead by our online examples where we demonstrates how RadFormDecorator can be used to style form controls used in other controls in the suite. However, I believe that what you need can be achieved by using both the stylesheets of form decorator and grid.

    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top