|
Article relates to
|
RadSlider for ASP.NET AJAX
|
|
Created by
|
Tsvetelina, Telerik
|
|
Last modified
|
March 17, 2009
|
|
Last modified by
|
Tsvetelina, Telerik
|
HOW-TO
Create a RadSliderItem for each record in a DataTable.
DESCRIPTION
The RadSlider control does not support DataBinding out of the box. However, there are a couple of scenarios when you would want to display the data from a DataTable using a RadSlider with items.
SOLUTION
First, you have to define a RadSlider that would display items. In order to do this, you only have to set the ItemType property of the control to "Item". Have a look at the sample code fragment below:
Now, In order to create a RadSliderItem in the RadSlider for each record in your DataTable, you have to loop trough the records of that DataTable, create an item using the information in the current row and add this item to the Items collection of the RadSlider.
C#:
VB:
Please
Sign In
to rate this article.