GridRatingColumn not applying Skin properly

3 posts, 0 answers
  1. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 29 Oct 2010 Link to this post

    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. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 29 Oct 2010 Link to this post

    As a quick followup.

    I created a template column using a radrating control and it applies the skin properly.
  3. DevCraft R3 2016 release webinar banner
  4. Dimo
    Dimo avatar
    8321 posts

    Posted 02 Nov 2010 Link to this post

    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
Back to Top