[CLOSED] RatingColumn: Stars not rendered correctly

  1. #1

    [CLOSED] RatingColumn: Stars not rendered correctly

    Hello,
    I use the RatingColumn Example but the stars are not rendered correctly: Name:  stars.PNG
Views: 68
Size:  1.7 KB. There is a small part of a sixth star where there should be only five stars and the first silver star in each row has a small part painted gold. The code is identical to the example with only one column (the only exception is that I pass only integer numbers) and there is no additional css code
    Last edited by fabricio.murta; Jul 14, 2017 at 4:16 PM. Reason: no feedback from the user in 7+ days
  2. #2
    Hello @atroul!

    The pictures displayed on your screenshot does not seem to correspond to the start pictures I see here. I see no 'overall' column in the example you pointed, this indicates you extracted the screenshot from somewhere else not the example.

    I am afraid more information would be required. I tried several things here, including accessing the example from a computer with a high pixel density screen (macbook with retina display). Yet, the columns did not show the glitch you indicated in your screenshot. Changing themes also seems not to trigger the issue.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello Fabricio,
    I just removed the other columns and renamed the last one. But the core functionality was the same. But even if I copy paste the
    online example I get similar results.
    Here is the result of the example (in latest version of chrome):
    Click image for larger version. 

Name:	ratingggg.PNG 
Views:	47 
Size:	16.4 KB 
ID:	24972
    and the code I used:

    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                this.Store1.DataSource = this.Data;
                this.Store1.DataBind();
            }
        }
    
        private object[] Data
        {
            get
            {
                return new object[]
                {
                    new object[] { "3m Co", 1, 3, 1 },
                    new object[] { "Alcoa Inc", 2, 2.7, 2 },
                    new object[] { "Altria Group Inc", 3.5, 2, 3 },
                    new object[] { "American Express Company", 4, 1.3, 4 },
                    new object[] { "American International Group, Inc.", 5, 0, 5 }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>RatingColumn - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
    
        <style>
            .number-selected {
                background : transparent url(star_n.png) repeat-x left center;
            }
    
            .number-unselected {
                background : transparent url(star_fade_n.png) repeat-x left center;
            }
        </style>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
    
        <h1>Rating Column</h1>
    
        <ext:GridPanel
            ID="GridPanel1"
            runat="server"
            Title="Array Grid"
            Width="600"
            Height="350">
            <Store>
                <ext:Store ID="Store1" runat="server">
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="company" />
                                <ext:ModelField Name="rating1" Type="Float" />
                                <ext:ModelField Name="rating2" Type="Float" />
                                <ext:ModelField Name="rating3" Type="Float" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column runat="server" Text="Company" DataIndex="company" Flex="1" />
                    <ext:RatingColumn runat="server" Text="Rating" DataIndex="rating1" />
                    <ext:RatingColumn runat="server" Text="Editable" DataIndex="rating2" RoundToTick="false" Editable="true" />
                    <ext:RatingColumn runat="server" Text="Custom" DataIndex="rating3" SelectedCls="number-selected" UnselectedCls="number-unselected" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	ratingggg.PNG 
Views:	36 
Size:	17.4 KB 
ID:	24971  
  4. #4
    Hello @atroul!

    Thanks for the test case. It runs fine here. But I notice that the same test case does not really produce the same results between you and me. You have overridden project settings at least for the theme. Other things should have been replaced that may be triggering the issue.

    Can you try making a new, fresh ASP.NET project and adding Ext.NET 4.2.1 NuGet package and running your sample on it?

    Please try the sample on the Triton theme. I have checked some themes here and all seems to work well with the sample, but maybe I missed something. On a fresh project if you don't override Web.config settings, the theme without specifying anything in the page's ResourceManager should be Triton and the screenshot exactly same as this one:
    Click image for larger version. 

Name:	61945-ratingColumn.png 
Views:	35 
Size:	19.2 KB 
ID:	24973

    I hope this helps!
    Last edited by fabricio.murta; Jun 02, 2017 at 10:55 AM. Reason: s/fres/fresh
  5. #5
    Hello @atroul!

    It's been some time since we last provided you feedback here, and still no follow-up from you. This is an intriguing issue that we still couldn't reproduce on our side, that by the screenshots you share, suggests a CSS misconfiguration pointing to the wrong bits of the star pictures in the rating column -- which should not be happening at all as we use cache buster flags to ensure new figures are loaded on every new version of Ext.NET.

    Anyway, did you solve the issue by yourself? Still need help with this? We're eager to help but seems we'd need more info in order to be able to pinpoint the issue.

    If you don't post back here in 7+ days from now, we may mark this thread as closed, but worry not, as you'll still be able to post here even after that period is over.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 4
    Last Post: Mar 06, 2015, 5:25 AM
  2. [CLOSED] Label not rendered correctly inside Toolbar
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 14, 2011, 5:58 AM
  3. [CLOSED] FileUpload in toolbar not rendered correctly
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 31, 2011, 4:32 PM
  4. [CLOSED] [1.0] TopBar/ BottomBar not rendered correctly
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 28, 2010, 9:09 AM
  5. Replies: 1
    Last Post: Jan 21, 2009, 12:46 PM

Tags for this Thread

Posting Permissions