Hello,
I encounter a strange problem when trying to apply different styles for different hierarchy levels on RadGrid.
I'm using the same approach as described in following article:
http://www.telerik.com/help/aspnet-ajax/grddifferentstylesineachhierarchylevelwithskin.html
All works fine for HeaderStyle, ItemStyle and AlternatingItemStyle. However as soon as I try to apply a new style to CommandItemStyle, RadGrid behaves in a weired way:
Applying style "OuterItemStyle" on the CommandItemStyle of the MasterTable works, but applying "InnerItemStyle" to the first DetailTable CommandItemStyle doesn't work at all.
Some snippets of my code:
<style type="text/css">
.OuterItemStyle
{
background: #90979E !important;
color: black !important;
/*add more style definitions here*/
}
.........
.InnerItemStyle
{
background: #E0E1E2 !important;
color: black !important;
/*add more style definitions here*/
}
}
</style>
.......
<telerik:RadGrid runat="server" .... >
<MasterTableView CommandItemDisplay="Top" ... >
<ItemStyle CssClass="OuterItemStyle" />
<CommandItemStyle CssClass="OuterItemStyle" />
...............
<DetailTables>
<telerik:GridTableView CommandItemDisplay="Top".......>
<ItemStyle CssClass="InnerItemStyle" />
<CommandItemStyle CssClass="InnerItemStyle" />
........
When inspecting the source code of the generated page in the Dom-Inspector, I see that the "OuterItemStyle" css class has been applied to the CommandItem of the MasterTable but no class has been applied to the DetailTable.
It seems as if the line <CommandItemStyle CssClass="InnerItemStyle" /> isn't affecting any value...
Is this a problem of RadGrid or did I just missed a thing?
Any help is highly appreciated,
Thanks a lot
Dany
I encounter a strange problem when trying to apply different styles for different hierarchy levels on RadGrid.
I'm using the same approach as described in following article:
http://www.telerik.com/help/aspnet-ajax/grddifferentstylesineachhierarchylevelwithskin.html
All works fine for HeaderStyle, ItemStyle and AlternatingItemStyle. However as soon as I try to apply a new style to CommandItemStyle, RadGrid behaves in a weired way:
Applying style "OuterItemStyle" on the CommandItemStyle of the MasterTable works, but applying "InnerItemStyle" to the first DetailTable CommandItemStyle doesn't work at all.
Some snippets of my code:
<style type="text/css">
.OuterItemStyle
{
background: #90979E !important;
color: black !important;
/*add more style definitions here*/
}
.........
.InnerItemStyle
{
background: #E0E1E2 !important;
color: black !important;
/*add more style definitions here*/
}
}
</style>
.......
<telerik:RadGrid runat="server" .... >
<MasterTableView CommandItemDisplay="Top" ... >
<ItemStyle CssClass="OuterItemStyle" />
<CommandItemStyle CssClass="OuterItemStyle" />
...............
<DetailTables>
<telerik:GridTableView CommandItemDisplay="Top".......>
<ItemStyle CssClass="InnerItemStyle" />
<CommandItemStyle CssClass="InnerItemStyle" />
........
When inspecting the source code of the generated page in the Dom-Inspector, I see that the "OuterItemStyle" css class has been applied to the CommandItem of the MasterTable but no class has been applied to the DetailTable.
It seems as if the line <CommandItemStyle CssClass="InnerItemStyle" /> isn't affecting any value...
Is this a problem of RadGrid or did I just missed a thing?
Any help is highly appreciated,
Thanks a lot
Dany