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

Forcing FormDecorator to include css for control type

1 Answer 45 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 12 Nov 2009, 10:53 PM
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?

Thanks,
Matt

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 13 Nov 2009, 07:41 AM
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.

Regards,
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.
Tags
FormDecorator
Asked by
Matt
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or