[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Collapse]Multi-Use Site Controls
   [Expand]Product Information
   [Expand]Callback Control
   [Expand]Callback Panel
   [Expand]Captcha Control
   [Collapse]Rating Control
     ASPxRatingControl Overview
      Customizing Item's Images
    [Expand]Visual Elements
   [Expand]Timer Control
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Customizing Item's Images

ASPxRatingControl enables you to modify its appearance by customizing images for items. You can set a uniform image for all items, or a specific image for each item as shown on the picture.

To specify custom image use the ASPxRatingControl.ImageMapUrl, ASPxRatingControl.ItemWidth and ASPxRatingControl.ItemHeight properties.

The custom image combines a set of images (with specific height and width), arranged in tabular format. Here, each column identifies an image for a corresponding item in different states (checked, clicked, etc.) specified by rows. The columns count should correspond to the items count (the ASPxRatingControl.ItemCount property). To set a uniform image for all items, it's sufficient to specify only one column with images within a custom image.

The ASPxRatingControl's ASPxRatingControl.ItemWidth and ASPxRatingControl.ItemHeight properties should be set to the item image's width and height, as shown in the picture.

The custom image is parsed into constituent parts - item images with specified width and height, which are applied to the corresponding ASPxRatingControl items. For the custom image with one column, its parsed item images repeat themselves for all items.

Is this topic helpful?​​​​​​​