Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [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
   [Expand]HiddenField
   [Expand]ObjectContainer
   [Collapse]Rating Control
     ASPxRatingControl Overview
    [Collapse]Concepts
      Customizing Item's Images
    [Expand]Visual Elements
   [Expand]RoundPanel
   [Expand]Timer Control
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [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]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[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.

How would you rate this topic?​​​​​​​