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

Radgrid style not showing

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mouse
Top achievements
Rank 1
Mouse asked on 27 May 2010, 10:07 AM
Hi,

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>

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 May 2010, 04:31 PM
Hello Booyh,

The only thing that comes to my mind is this:

http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx

There is nothing special or wrong with your RadGrid declaration, so if the problem persists, please send a runnable demo for further inspection.

Greetings,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Mouse
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or