Hello,
I am having a hard time finding a concrete definition or documentation on how to retrieve range values from RadSlider. I have tried several ideas I found going through these forums, the demos, and other sites online but to no avail have I found a solution. Is there something I am missing?
Lines 1-2 return the index of the currently selected items, but not the value itself. I found this in the RadSlider demo, but I am not sure how this would work for a date range (represented as a string).
Lines 4-5 allows me to see one of the values, but I am not sure how to get the range and not just one value.
Lines 7-8 allowed me to see the values that I wanted, but when I tried converting the values to datetime variables, Visual Studio returned an error stating that I couldn't convert decimals to datetime.
The end goal is to connect the RadSlider to the RadHtmlChart and have the dates of the chart correlate with what the user chooses in the slider; an example of this would be the Olympic Medal site on the Telerik demos.
Any help would be greatly appreciated!
1.
Dim
temp1
As
String
= rsDateRange.SelectionStart.ToString()
2.
Dim
temp2
As
String
= rsDateRange.SelectionEnd.ToString()
3.
4.
Dim
value
As
Integer
= rsDateRange.Value
5.
Dim
str
As
String
= rsDateRange.Items(value).Value.ToString()
6.
7.
Dim
tempStart
As
RadSliderItem = rsDateRange.Items(rsDateRange.SelectionStart)
8.
Dim
tempEnd
As
RadSliderItem = rsDateRange.Items(rsDateRange.SelectionEnd)