Log In
[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
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [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]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [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]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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?​​​​​​​