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.
Unfortunately, activation email could not send to your email. Please try again.

Customise SfRating size

Thread ID:

Created:

Updated:

Platform:

Replies:

110469 Aug 6,2013 12:58 AM Sep 10,2015 12:33 PM WinRT 4
loading
Tags: SfRating
Hermit
Asked On August 6, 2013 12:58 AM

Whilst SfRating control works as advertised, I am having problems trying to adjust its width / height.

My actual requirement is to make it smaller - 80 pixels however even creating a copy of the template and setting the width on PART_Host border didn't work (threw runtime exception).

Any pointers will be appreciated

 

Hermit

 

 

 


Hermit
Replied On August 6, 2013 01:16 AM

Update: The copy of template had Margin defined without , e.g. Margin="0 0 0 33" this was the cause of the runtime error. correcting that, the rating control just appears cropped now resized


Mageshyadav M [Syncfusion]
Replied On August 8, 2013 06:58 AM

Hi Hermit,

 

We have created a sample to achieve your requirement of resizing RatingItem. Please find the sample from the following location,

 

RatingSample.zip

 

In the above sample we have defined two keys RatingItemWidth and RatingItemHeight to modify the width and height of RatingItems and this keys has been referred in edited style.

 

Please let us know if you have any queries.

 

Regards,

Mageshyadav.M


Naweed Akram
Replied On September 9, 2015 07:35 AM

Hi,

I am unable to access this sample.

Regards
Naweed

Sugapriya Mariappan [Syncfusion]
Replied On September 10, 2015 12:33 PM

Hi Naweed,

Sorry for the inconvenience caused

To set similar height for the SfRatingItem,use ItemContainerStyle property of the SfRating control and to provide variable size, set Height for the Individual SfRatingItem.

Please find the KB link for your reference
KB link: https://www.syncfusion.com/kb/3383/how-to-set-various-heights-between-sfratingitems

Please download the sample from the below link
Sample link:SfRatingSample

Please let us know if you have any concern

Regards,
M.Sugapriya

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;