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

unable to apply Skin on a radgrid

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 30 Jun 2010, 05:10 PM

Hi
I am unable to apply any Skin on my Radgrid. The version I am using is 2008.3.1125.35  . I tried with version 2009.3.1103.20 too but other than the default "Vista" looking appearance which renders even if I did not give a value to the SKin property nothing works as far as skin is concerned.
This radgrid is inside a user control and which in turn is hosted in a page with master page.
Here is my radgrid :
Thanks
Scott 


-------------------------------------------------------------------------------------------------------------
<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucAdminCompanyConfig.ascx.cs" Inherits="UConnect.wsadm.uc.ucAdminCompanyConfig" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register src="../../uc/general/InfoText/InfoText.ascx" tagname="InformationLabel" tagprefix="uc1" %>

 

<

 

div id="divSearch"

 

 

style="overflow: visible; height: 525px; padding-left: 3%;">

 

 

<asp:Panel ID="pnlListUsers" runat="server" >

 

 

 

<div style="overflow:auto">

 

 

<telerik:RadGrid ID="RadGridCompanyConfig" runat="server"

 

 

AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"

 

 

AutoGenerateColumns="False"

 

 

EnableLinqExpressions="False" GridLines="None"

 

 

GroupingSettings-CaseSensitive="false" Height="505px"

 

 

OnPageIndexChanged="RadGridCompanyConfig_PageIndexChanged"

 

 

PageSize="8" Skin="Black" PagerStyle-AlwaysVisible ="true"

 

 

style="margin-right: 315px; margin-bottom: 0px;" AllowAutomaticUpdates="True"

 

 

AllowAutomaticDeletes="True" AllowAutomaticInserts ="True"

 

 

oninit="RadGridCompanyConfig_Init1"

 

 

onneeddatasource="RadGridCompanyConfig_NeedDataSource"

 

 

ondeletecommand="RadGridCompanyConfig_DeleteCommand"

 

 

oninsertcommand="RadGridCompanyConfig_InsertCommand"

 

 

onupdatecommand="RadGridCompanyConfig_UpdateCommand"

 

 

onitemdatabound="RadGridCompanyConfig_ItemDataBound"

 

 

onprerender="RadGridCompanyConfig_PreRender" >

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

<Scrolling AllowScroll="false" EnableVirtualScrollPaging="true" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2">

 

 

</Scrolling>

 

 

</ClientSettings>

 

 

<HeaderContextMenu EnableTheming="True">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</HeaderContextMenu>

 

 

<PagerStyle AlwaysVisible="True" />

 

 

<MasterTableView AllowNaturalSort="false" CommandItemDisplay="Top" Width="1120px"

 

 

DataKeyNames="ConfigId" DataMember="Config" TableLayout="Fixed" >

 

 

<NoRecordsTemplate>

 

No Configurations Found.

 

</NoRecordsTemplate>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns >

 

 

<telerik:GridBoundColumn DataField="ConfigId" Display="false" ReadOnly="true"

 

 

FilterControlWidth="50px"

 

 

FilterImageUrl="../../images/Telerik/Vista/Grid/Filter.gif"

 

 

HeaderText="Config ID" UniqueName="ConfigId" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn ColumnEditorID="GridTextBoxColumnEditor1"

 

 

DataField="ConfigName" FilterControlWidth="110px" Resizable="true"

 

 

FilterImageUrl="../../images/Telerik/Vista/Grid/Filter.gif"

 

 

HeaderText="Config Name" UniqueName="ConfigName">

 

 

<HeaderStyle Width="150px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn ColumnEditorID="GridTextBoxColumnEditor2" Resizable="true"

 

 

DataField="ConfigValue" FilterControlWidth="400px"

 

 

FilterImageUrl="../../images/Telerik/Vista/Grid/Filter.gif"

 

 

HeaderText="Config Value" UniqueName="ConfigValue" ItemStyle-Wrap="true">

 

 

<HeaderStyle Width="600px" Wrap="true" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ChangeDate" ReadOnly="true"

 

 

FilterControlWidth="100px"

 

 

FilterImageUrl="../../images/Telerik/Vista/Grid/Filter.gif"

 

 

HeaderText="Change Date" UniqueName="ChangeDate">

 

 

<HeaderStyle Width="150px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn FilterControlWidth="100px" DataField="CompanyId" UniqueName="Company" FilterImageUrl="../../images/Telerik/Vista/Grid/Filter.gif" >

 

 

<HeaderTemplate >

 

 

<asp:Label ID="Label1" CssClass="" Text="Company" runat="server"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label CssClass="" ID="lblCompany" runat="server" Text='<%# GetNameFromId(Eval("CompanyId")) %>'></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:Label ID="lblCompanyEdit" runat="server" Text="Company:" ></asp:Label>

 

 

<asp:DropDownList runat="server" ID="ddlCompany"></asp:DropDownList>

 

 

 

</EditItemTemplate>

 

 

<HeaderStyle Width ="150px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridEditCommandColumn >

 

 

<HeaderStyle Width="40px" />

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"

 

 

ConfirmDialogType="RadWindow" ConfirmText="Delete this product?"

 

 

ConfirmTitle="Delete" Text="Delete" UniqueName="DeleteColumn">

 

 

<ItemStyle CssClass="" HorizontalAlign="Center" />

 

 

<HeaderStyle Width="40px" />

 

 

</telerik:GridButtonColumn>

 

 

</Columns>

 

 

<EditFormSettings CaptionDataField="configId"

 

 

CaptionFormatString="Edit Config {0}" ColumnNumber="3" >

 

 

<FormTableItemStyle Wrap="False" />

 

 

<FormCaptionStyle CssClass="" />

 

 

<FormMainTableStyle BackColor="White" CellPadding="3" CellSpacing="0"

 

 

GridLines="None" Width="100%" />

 

 

<FormTableStyle BackColor="White" CellPadding="2" CellSpacing="0"

 

 

Height="110px" />

 

 

<FormTableAlternatingItemStyle Wrap="False" />

 

 

 

<EditColumn ButtonType="ImageButton" CancelText="Cancel edit"

 

 

InsertText="Insert Order" UniqueName="ConfigId" UpdateText="Update record">

 

 

</EditColumn>

 

 

<FormTableButtonRowStyle HorizontalAlign="Right" />

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

<GroupingSettings CaseSensitive="False" />

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 

 

<telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="250px" />

 

 

<telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor2" runat="server" TextBoxStyle-Width="1000px" />

 

 

<telerik:GridDropDownListColumnEditor ID="GridDropDownColumnEditor1" runat="server" DropDownStyle-Width="150px" />

 

 

<div style="height:34px; overflow:hidden;" runat="server" id="infoDiv" visible="false">

 

 

<uc1:InformationLabel id="infoResults" runat="server" visible="False" />

 

 

</div>

 

 

</div>

 

 

 

</asp:Panel>

 

</

 

div>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-------------------

1 Answer, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 30 Jun 2010, 06:53 PM
I guess the issue was because in my base page the skin was getting dynamically set.which overwrote my design setting.
Thanks
Scott
Tags
Grid
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Share this question
or