Tuesday, 3 September 2013

Need assistance with dynamic Slider control

Need assistance with dynamic Slider control

I am trying to change the scale of the slider dynamically but it is not
changing, it maintains the initial value.
I am using following code for initialization:
$scope.prValueMax = parseInt($scope.SearchResults[0].PRValueUS + 1);
$('#slider-PRvalue').slider_x({
range: true,
// min: 0,
max: $scope.prValueMax,
values: [0, $scope.prValueMax],
tickMarksCount: 1,
scale: [0, $scope.prValueMax],
slide: function (event, ui) {
//some code
}
});

No comments:

Post a Comment