Hi,
Have a range slider I use for a date range (years), this has two handles ‘From’ and ’To’, I need to be able to track these two slider values so I can write them each to divs (two separate divs). I’ve got it working with one slider but can’t work out how to capture the second slider value, I hope you can help. Here is my code:
From <
span
class
=
"SearchHeaderNumbers"
><
asp:label
runat
=
"server"
ID
=
"litDateFrom"
ClientIDMode
=
"Static"
Text
=
""
/></
span
> to <
span
class
=
"SearchHeaderNumbers"
><
asp:label
runat
=
"server"
ID
=
"litDateTo"
ClientIDMode
=
"Static"
Text
=
""
/></
span
><
br
/>
<
div
class
=
"DateRange"
>
<
telerik:RadSlider
ID
=
"rsDateRange"
runat
=
"server"
AutoPostBack
=
"true"
BackColor
=
"#F5F5F5"
EnableEmbeddedSkins
=
"true"
SelectionStart
=
"1996"
ItemType
=
"Tick"
OnClientValueChanging
=
"clientValueChange"
ShowDecreaseHandle
=
"false"
ShowIncreaseHandle
=
"false"
SelectionEnd
=
"2010"
IsSelectionRangeEnabled
=
"true"
LiveDrag
=
"true"
DragText
=
""
MinimumValue
=
"1996"
MaximumValue
=
"2010"
Width
=
"167px"
/>
</
div
>
<script language=
"javascript"
type=
"text/javascript"
>
function
clientValueChange(sender, eventArgs) {
var
myDateFrom = document.getElementById(
"litDateFrom"
)
myDateFrom.innerHTML = sender.get_value();
var
myDateTo = document.getElementById(
"litDateTo"
)
// myDateFrom.innerHTML = ??? Some code ???
}
</script>
as I mentioned I can get the value from sender.get_value() which which gives me the value for the start slider but the end slider I'm lost about.
Thanks
Ed