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

Change skin for only one element

3 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emanuele
Top achievements
Rank 1
Emanuele asked on 25 Nov 2011, 09:36 AM
HI !!! explain my problem...
I've one page with many Grid nasted like this example:
example
I'm searching a way to change the style of inner Grid only.
I've a global skin-them applicated to all my application; i try to overwrite RadGrid css class but,obviously, it change style to all Grid of the page.
Please help me, thanks !!!
 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Nov 2011, 10:01 AM
Hello Emanuele,

Try setting the skin for inner grid which worked as expected.
aspx:
<NestedViewTemplate>
 <telerik:RadGrid ID="RadGrid1" Skin="Black" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="true" >
 </telerik:RadGrid>
</NestedViewTemplate>

-Shinu.
0
Emanuele
Top achievements
Rank 1
answered on 25 Nov 2011, 10:25 AM
Not works;
It no produce results, i've applicated my custom second skin-them called "rubino",but nothig,grid retains the global theme...
0
Emanuele
Top achievements
Rank 1
answered on 25 Nov 2011, 10:51 AM
Resolved !!!
this is the solution:
<NestedViewTemplate>
 <telerik:RadGrid ID="RadGrid1" Skin="Custom" EnableEmbeddedSkins="true" EnableTheming="false" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="true" >
 </telerik:RadGrid>
</NestedViewTemplate>


Only the nasted grid style is changing !
Thanks !
Tags
General Discussions
Asked by
Emanuele
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Emanuele
Top achievements
Rank 1
Share this question
or