We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Change width of SfRating?

Hi,

can the width of the SfRating be changed?
i was changing the stars to a height of 15, and have now a lot of space between them.
Can that be condensed?



thx,

Helmut

3 Replies

HM Hemalatha Marikumar Syncfusion Team February 10, 2020 08:50 AM UTC

Hi Helmut,

Greetings from Syncfusion. 
 
Your requirement has been achieved by setting Width of SfRatingItem as per in below code snippet

Code snippet: 
  <rating:SfRating Height="100" ItemsCount="5"> 
        <rating:SfRating.ItemContainerStyle> 
                <Style TargetType="rating:SfRatingItem"> 
                <Setter Property="RatedStroke" Value="Green"></Setter> 
                <Setter Property="Height" Value="50"/> 
                <Setter Property="Width" Value="60"/> 
                <Setter Property="RatedStrokeThickness" Value="2"></Setter> 
                </Style> 
            </rating:SfRating.ItemContainerStyle> 
  
    </rating:SfRating> 
  
Output:


 
Please let us know if you have any other queries. 
 
Regards,
Hemalatha M. 



HW Helmut Wahrmann February 10, 2020 12:14 PM UTC

of course. How could i have missed that?

Thanks,
Helmut


SP Sakthivel Palaniyappan Syncfusion Team February 11, 2020 10:58 AM UTC

 Hi Helmut,

Thanks for your update.

We are glad to know that given solution works.

Please let us know if you have any other queries.

Regards,
Sakthivel P.
 


Loader.
Live Chat Icon For mobile
Up arrow icon