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

GridRatingColumn not applying Skin properly

2 Answers 30 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Allan asked on 29 Oct 2010, 07:15 PM
I have a very basic Grid with a GridRatingColumn. I have applied the WebBlue skin to the Grid. However, only the very last record enables the GradRatingColumn to diplay the correct skin colors. Here is a link to a screen shot.

Rad Grid Issue

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <form id="form1" runat="server">
 <telerik:RadGrid ID="rgd_MyRequests" runat="server" DataSourceID="sds_MyRequests" 
 GridLines="None" Skin="WebBlue" Width="800px">
<MasterTableView AutoGenerateColumns="False" DataSourceID="sds_MyRequests">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
<HeaderStyle Width="20px"></HeaderStyle>
<HeaderStyle Width="20px"></HeaderStyle>
        <telerik:GridBoundColumn DataField="EnteredDate" DataType="System.DateTime" 
            HeaderText="Entered Date" SortExpression="EnteredDate" 
            UniqueName="EnteredDate" ItemStyle-Width="75px" DataFormatString="{0:MM/dd/yyyy}" ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center" Width="75px"></ItemStyle>
        <telerik:GridRatingColumn DataField="Priority" UniqueName="column" 
            ReadOnly="True" HeaderText="Priority">
            <ItemStyle Width="70px" Wrap="False" />
        <telerik:GridBoundColumn DataField="Status" 
            DataType="System.Int32" HeaderText="Status" SortExpression="Status" 
            UniqueName="Status" ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center" Width="25px"></ItemStyle>
        <telerik:GridBoundColumn DataField="CategoryName" HeaderText="Issue Category" 
            SortExpression="CategoryName" UniqueName="CategoryName" 
            DataType="System.Int32" ItemStyle-Width="75px">
<ItemStyle Width="75px"></ItemStyle>
        <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" 
            SortExpression="Subject" UniqueName="Subject">
    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
        Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" 
        Wrap="True" />
    <asp:SqlDataSource ID="sds_MyRequests" runat="server" 
        ConnectionString="<%$ ConnectionStrings:IT_CentralConnectionString %>" 
        SelectCommand="SELECT [EnteredDate], [Priority], [Status], [CategoryName], [Subject] FROM [vw_ITC_Ticket_Details] WHERE [RequestorUserName] = 'hpotter' AND (CompletedDate IS NULL) ORDER BY [EnteredDate]">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

2 Answers, 1 is accepted

Sort by
Top achievements
Rank 2
answered on 29 Oct 2010, 07:22 PM
As a quick followup.

I created a template column using a radrating control and it applies the skin properly.
Telerik team
answered on 02 Nov 2010, 11:08 AM
Hi Allan,

The screenshot URL is inaccessible, please upload the image somewhere.

I don't see anything wrong with your code snippet, except that column width should be set with HeaderStyle-Width, not ItemStyle-Width. Here is a working demo of the rating column:

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
Asked by
Top achievements
Rank 2
Answers by
Top achievements
Rank 2
Telerik team
Share this question