Hi,
When using the slider I am noticing some odd behaviour. I have a set of criteria 1-5 and in the database I store which one of them was chosen. Now If I use the code as below with the database value of 1, the second entry in the list is selected, setting the value in the database to 0 (which in practice it should never be) causes the first item to be selected. It's almost as if the slider is treating the value as a 0 based array index.... Any ideas? Code follows:
When using the slider I am noticing some odd behaviour. I have a set of criteria 1-5 and in the database I store which one of them was chosen. Now If I use the code as below with the database value of 1, the second entry in the list is selected, setting the value in the database to 0 (which in practice it should never be) causes the first item to be selected. It's almost as if the slider is treating the value as a 0 based array index.... Any ideas? Code follows:
<
telerik:RadSlider
ID
=
"uxOQC_1"
runat
=
"server"
DbValue='<%# Bind("OQC_1") %>' MinimumValue="1" MaximumValue="5" ItemType="Item" TrackPosition="Center">
<
Items
>
<
telerik:RadSliderItem
Text
=
"Strongly disagree"
Value
=
"1"
ToolTip
=
"Strongly disagree"
runat
=
"server"
></
telerik:RadSliderItem
>
<
telerik:RadSliderItem
Text
=
"Disagree"
Value
=
"2"
ToolTip
=
"Disagree"
runat
=
"server"
></
telerik:RadSliderItem
>
<
telerik:RadSliderItem
Text
=
"Neither agree nor disagree"
Value
=
"3"
ToolTip
=
"Neither agree nor disagree"
runat
=
"server"
></
telerik:RadSliderItem
>
<
telerik:RadSliderItem
Text
=
"Agree"
Value
=
"4"
ToolTip
=
"Agree"
runat
=
"server"
></
telerik:RadSliderItem
>
<
telerik:RadSliderItem
Text
=
"Strongly agree"
Value
=
"5"
ToolTip
=
"Strongly agree"
runat
=
"server"
></
telerik:RadSliderItem
>
</
Items
>
</
telerik:RadSlider
>