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

Change width of SfRating?


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?



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"> 
                <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> 

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

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

of course. How could i have missed that?


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.

Sakthivel P.

Live Chat Icon For mobile
Up arrow icon