Hi,
My idea is you may add a valueChanged handler to the SliderBehavior component, and set the the color according to the value.
For instance:
<ajaxToolkit:SliderExtenderBehaviorID="slider"ID="SliderExtender1" runat="server" TargetControlID="TextBox1"
Minimum="0" Maximum="100" RaiseChangeOnlyOnMouseUp="true" Steps="5" RailCssClass="myclass" HandleImageUrl="../images/edit.gif">
</ajaxToolkit:SliderExtender>
function pageLoad(){
var slider = $find("slider");
slider.add_valueChanged(onValueChanged);
}
function onValueChanged()
{
var slider = $find("slider");
if(slider.getValue() > ? )
slider.set_RailCssClass(//a css class with a different back color);
}
Hope this helps.
No comments:
Post a Comment