I have used rad slider for showing a age slider. And using telerik ajax for calling the value changed event.
I have problem in such that the event is not called when slider thumb is dragged back to start value (Zero is my start value).
Thanks
I have problem in such that the event is not called when slider thumb is dragged back to start value (Zero is my start value).
Thanks
3 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 29 Jun 2012, 06:42 AM
Hi Stalin,
Unfortunately I couldn't replicate the issue at my end. Here is the sample code that I tried and is working as expected at my end.
aspx:
C#:
Please provide your code if it doesn't helps.
Thanks,
Shinu.
Unfortunately I couldn't replicate the issue at my end. Here is the sample code that I tried and is working as expected at my end.
aspx:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadSlider_Ticks" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadSlider_Ticks" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadSlider ID="RadSlider_Ticks" runat="server" MinimumValue="0" MaximumValue="100" SmallChange="5" LargeChange="10" ItemType="tick" AutoPostBack="true" Height="70px" Width="350px" ThumbsInteractionMode="Push" onvaluechanged="RadSlider_Ticks_ValueChanged"></telerik:RadSlider>protected void RadSlider_Ticks_ValueChanged(object sender, EventArgs e){}Thanks,
Shinu.
0
Stalin
Top achievements
Rank 1
answered on 18 Jul 2012, 10:39 AM
Below is the code i have used,
<telerik:RadAjaxManagerProxy ID="myAjaxManangerProxy" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="mySliderControl"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="myTargetControl" LoadingPanelID="myLoadingPanel" /> </UpdatedControls> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadSlider ID="mySliderControl" OnValueChanged="mySliderControl_ValueChanged" Orientation="Horizontal" runat="server" ItemType="tick" Height="50px" Width="200px" AnimationDuration="400" ThumbsInteractionMode="Free" TrackPosition="BottomRight" AutoPostBack="true" ShowIncreaseHandle="false" ShowDecreaseHandle="false" BorderWidth="0" ForeColor="Gray" FontSize="X-Large" BorderColor="Beige"> </telerik:RadSlider>
Here, the change event is called for other slide values other than 0.
0
Shinu
Top achievements
Rank 2
answered on 19 Jul 2012, 10:12 AM
Hello Stalin,
Unfortunately I couldn't replicate the issue. Here is the sample code that I tried in the version(2012, 2, 607, 40) which fires OnValueChanged event when slider thumb is dragged to zero.
aspx:
C#:
Thanks,
Shinu.
Unfortunately I couldn't replicate the issue. Here is the sample code that I tried in the version(2012, 2, 607, 40) which fires OnValueChanged event when slider thumb is dragged to zero.
aspx:
<telerik:RadAjaxManagerProxy ID="myAjaxManangerProxy" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="mySliderControl"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="myTargetControl" LoadingPanelID="myLoadingPanel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy><telerik:RadAjaxLoadingPanel ID="myLoadingPanel" runat="server"></telerik:RadAjaxLoadingPanel><telerik:RadSlider ID="mySliderControl" Orientation="Horizontal" runat="server" ItemType="tick" Height="50px" Width="200px" AnimationDuration="400" ThumbsInteractionMode="Free" TrackPosition="BottomRight" AutoPostBack="true" ShowIncreaseHandle="false" ShowDecreaseHandle="false" BorderWidth="0" ForeColor="Gray" FontSize="X-Large" BorderColor="Beige" onvaluechanged="mySliderControl_ValueChanged1"></telerik:RadSlider><asp:TextBox ID="myTargetControl" runat="server"></asp:TextBox>protected void mySliderControl_ValueChanged1(object sender, EventArgs e){ Response.Write(mySliderControl.Value);}Thanks,
Shinu.