I have three radgrids on three different usercontrols with the exact same Skin on them. Which was set to outlook skin.
All three grids were working great until one day totally unexpectedly i was modifying the code behind of the main page which holds the user controls, and the style on one of the grids completely disappeared. I must stress that i did not do anything to do with skins in the code behind what so ever.
The other two grids still have the style outlook. I dont have a clue what has gone wrong. This is the grid in question below that is not showing the skin.
<
telerik:RadGrid ID="radgrid" Skin="Outlook" OnInsertCommand="radgrid_InsertCommand"
OnUpdateCommand="radgrid_UpdateCommand" EnableEmbeddedSkins="false" OnDeleteCommand="radgrid_OnDeleteCommand"
OnNeedDataSource="radgrid_NeedDataSource" OnDetailTableDataBind="radgrid_DetailTableDataBind"
runat="server">
<MasterTableView AutoGenerateColumns="false" Name="Acc" DataKeyNames="Id"
CommandItemDisplay="Bottom">
<DetailTables>
<telerik:GridTableView Name="Comm" DataKeyNames="Id2" CommandItemDisplay="Bottom"
AutoGenerateColumns="false" Width="100%">
<Columns>
<telerik:GridBoundColumn HeaderText="" DataField="Id" UniqueName="Id"
Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="name" DataField="param">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="name" DataField="param" DataFormatString="{0:N2}%">
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Update" UniqueName="EditCommandColumn1"
EditImageUrl="Edit.gif">
<HeaderStyle Width="20px" />
<ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="DeleteColumn" HeaderText="Delete">
<HeaderStyle Width="20px" />
<ItemTemplate>
<div style="width: 6px; max-width: 6px">
<asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" ImageUrl="Delete.gif"
AlternateText="Delete" OnClientClick="return confirmFn();" />
</div>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings UserControlName="CommEditForm.ascx" EditFormType="WebUserControl">
</EditFormSettings>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn HeaderText="name" DataField="Param">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="name" DataFormatString="{0:N2}" DataField="Param">
</telerik:GridBoundColumn>
<telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Update" UniqueName="EditCommandColumn1"
EditImageUrl="Edit.gif">
<HeaderStyle Width="20px" />
<ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>
<telerik:GridTemplateColumn UniqueName="DeleteColumn" HeaderText="Delete">
<HeaderStyle Width="20px" />
<ItemTemplate>
<div style="width: 6px; max-width: 6px">
<asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" ImageUrl="Delete.gif"
AlternateText="Delete" OnClientClick="return confirmFn();" />
</div>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings UserControlName="AccEditForm.ascx" EditFormType="WebUserControl">
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>