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
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Data Editors
   [Expand]Product Information
   [Expand]Common Concepts
   [Collapse]Editor Types
      ASPxTrackBar Overview
       Orientation and Direction
      [Collapse]Items Mode
        Items Mode Overview
        Manual Items Creation
        Data Binding
       Single and Range Value Selection
       Value Selection
       Scale Settings
       Client-Side API
     [Expand]Visual Elements
     [Expand]ASPxTrackBar - Animated Images
  [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

Manual Items Creation

In an unbound mode, the ASPxTrackBar control is not bound to any data source, and you can populate it with items manually.

Items can be manually created at design time via the Items Editor or directly in an aspx file.

At runtime, you can create items via the TrackBarItemCollection.Add or ListEditItemCollectionBase.AddRange methods.

Expanded Creating Items at Design-Time

You can use the Items Editor dialog to manually create ASPxTrackBar items at design time.

The Items Editor dialog allows you to add, delete and rearrange items, access and customize item settings. The dialog is shown in the image below.

When the OK button is clicked, the aspx code that adds the created items is generated. The code is listed below.

You can create items directly in an aspx file, writing a similar code.

The following image shows the result.

Expanded Creating Items at Runtime

ASPxTrackBar allows you to create items with specified settings at runtime, using the TrackBarItemCollection.Add or ListEditItemCollectionBase.AddRange methods. You can create all the items at one time or create items dynamically on demand.

See the example.

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