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

[Solved] Setting SkinID on a dynamically generated grid

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shanthala Somashekar
Top achievements
Rank 1
Shanthala Somashekar asked on 06 Oct 2009, 08:15 PM
I have a dynamically generated RadGrid created during Page_Init and added to a placeholder control on the page. For some reason if I set a SkinID to our custom skin, it does not take it. The RadGrid renders with the RadGrid_default skin styles instead. Is there something I am missing? Note: a static grid on the same page does apply the skin correctly.

Thanks
Shanthala

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 09 Oct 2009, 01:38 PM
Hi Shanthala,

To be applied properly, the SkinID should be set before adding the grid to the Controls collection.
I am attaching a sample project showing how to do this.
Please take a look at it and tell me whether you find it useful.

Best wishes,
Mira
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
Grid
Asked by
Shanthala Somashekar
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or