I have an issue setting isSelectionRangeEnabled on the client-side
I have a dropdownlist and a slider, When the ddl has a value of 3 I want to make sure selection range is turned on.
This works fine on my page. The slider instantly changes from a single value selection to a range.
My problem is after postback and trying to obtain the slider range values to use in C# to send them to the database.
I can move the 2 sliders all over track but on posting and setting breakpoint in my code i find; The isSelectionRangeEnabled value shows as true, but SelectionEnd and SelectionStart values are always 0 and the Value property is equal to what the SelectionStart value should be.
Even when I explicitly set the selection range like in my code above this occurs. Its like the control gets half set into different selection modes from the client-side.
Thoughts?
I have a dropdownlist and a slider, When the ddl has a value of 3 I want to make sure selection range is turned on.
function operatorChanged() { var slider = $find('<%= slideNewRating.ClientID %>'); var ddlOperators = document.getElementById("<%=ddlOperators.ClientID%>"); var value = ddlOperators.options[ddlOperators.selectedIndex].value; if (value == 3) { slider.set_isSelectionRangeEnabled(true); slider.set_selectionStart = 1; slider.set_selectionEnd = 3; } else slider.set_isSelectionRangeEnabled(false); }This works fine on my page. The slider instantly changes from a single value selection to a range.
My problem is after postback and trying to obtain the slider range values to use in C# to send them to the database.
I can move the 2 sliders all over track but on posting and setting breakpoint in my code i find; The isSelectionRangeEnabled value shows as true, but SelectionEnd and SelectionStart values are always 0 and the Value property is equal to what the SelectionStart value should be.
Even when I explicitly set the selection range like in my code above this occurs. Its like the control gets half set into different selection modes from the client-side.
Thoughts?