Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: minimum and maximum value issue in MultiHandleSliderExtender [22213]

$
0
0
Hi,

I am using one MultiHandleSliderExtender per row in a gridview. Attached is the description in the gridview.
<table width="100%">
<tr valign="top">
<td>Min&nbsp;<asp:TextBox ID="SliderMinValue" runat="server" Width="20px"/>&nbsp;%</td>
<td style="width:180px;"><asp:TextBox ID="MechanismSlider" runat="server" style="display:none;"></asp:TextBox><cc1:MultiHandleSliderExtender ID="MechanismSliderExtender" runat="server" TargetControlID="MechanismSlider" Enabled="true" Length="180" Orientation="Horizontal" HandleAnimationDuration="0.1" ShowHandleDragStyle="true" ShowHandleHoverStyle="true"
Decimals="0" Maximum="100" Minimum="0" Steps="11" RaiseChangeOnlyOnMouseUp="false">
<MultiHandleSliderTargets><cc1:MultiHandleSliderTarget ControlID="SliderMinValue" Decimals="0" /><cc1:MultiHandleSliderTarget ControlID="SliderMaxValue" Decimals="0" /></MultiHandleSliderTargets></cc1:MultiHandleSliderExtender></td>
<td>Max&nbsp;<asp:TextBox ID="SliderMaxValue" runat="server" Width="20px" />&nbsp;%</td></tr></table>

Whenever I set the value to 0, the textbox in UI shows it as 0 but when the data gets saved, it saves as 10. If i use any non-zero value, it saves the value as it has been set.
I also use a javascript script to assign values to textboxes used for saving as follows:
<script language="javascript" type="text/javascript">
function MechanismValueChange(input, args) {
$($(input)._id.toString().substring(0, 47) + "SliderMinValue").value = $($(input)._id + "_handle_0").Value;
$($(input)._id.toString().substring(0, 47) + "SliderMaxValue").value = $($(input)._id + "_handle_1").Value;
}
</script>

This script fires on OnClientValueChanged event.

Any help would be appreciated.
Comments: It seems that the described problem is not an Ajax Control Toolkit issue.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>