I'm using the jQuery implementation of the range slider in an angular project (because I don't see a range slider component for angular yet, only a single value slider). I have this working by including the scripts locally, however, I'd like to pull them in via npm upon the bundling of the app via webpack.
Here are the entries from my angular-cli.json. Webpack compiles successfully, however, scripts.bundle.js complains that the module related to kendo.all.js is not defined.
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"../node_modules/@progress/kendo-theme-default/dist/all.css",
"styles.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js",
"../node_modules/sortablejs/Sortable.min.js",
"../node_modules/@progress/kendo-ui/js/kendo.all.js"
],
The result is that kendo.all.js looks the same as its entry in scripts.bundle.js.
I'm aware that I can include less than ALL to use the range slider, but I'm just trying to get this working first.
Hello,
I have a problem, when using floating point number as smallStep property i get uncorrect values and eventually the button of the slider stops working (does not want to increment or decrement after number)
Here is an example of the problem: Plnkr
Thank you!
Below find my code. I am using MVVM to initate a range-slider. It appears that when the page loads, both knobs are to the left most side, instead of one at the min and one at the max.
Please note: sometimes when the page loads, the knobs are positioned correctly.
Please advise.
<
script
type
=
"text/x-kendo-template"
id
=
"filterAgeTemplate"
>
<
div
class
=
"item--agerange"
>
<
div
class
=
"agerange-wrap"
>
<
div
data-role
=
"rangeslider"
data-small-step
=
"1"
data-large-step
=
"10"
data-min
=
"1"
data-max
=
"100"
data-bind
=
"value: ageRange, events: { change: vm_onAgeSelectorChange }"
id
=
"panel-filter__agerange"
style
=
"width:160px"
>
<
input
/>
<
input
/>
</
div
>
<
div
class
=
"agerange-title"
>Age Range</
div
>
</
div
>
<
div
class
=
"agerange-btns "
>
<
button
class
=
"button button__gray-outline"
><
span
>Reset</
span
></
button
>
</
div
>
</
div
>
</
script
>
Hello,
I am using the range slider via MVVM. I noticed that when i define the width via inline style on the div that sets the range slider, the tick marks disappear. However, if the width is removed, the tick marks appear. Please advise?
Edit: My range slider is sitting within a kendo template. I have attached a snippet of my code
<
script
type
=
"text/x-kendo-template"
id
=
"filterAgeTemplate"
>
<
div
class
=
"item--agerange"
>
<
div
class
=
"agerange-wrap"
>
<
div
data-role
=
"rangeslider"
data-small-step
=
"1"
data-large-step
=
"10"
data-min
=
"1"
data-max
=
"100"
data-bind
=
"value: ageRange, events: { change: vm_onAgeSelectorChange }"
id
=
"panel-filter__agerange"
style
=
"width:160px"
>
<
input
/>
<
input
/>
</
div
>
<
div
class
=
"agerange-title"
>Age Range</
div
>
</
div
>
<
div
class
=
"agerange-btns "
>
<
button
class
=
"button button__gray-outline"
><
span
>Reset</
span
></
button
>
</
div
>
</
div
>
</
script
>
Hi,
Is there any nice way to use a Kendo UI slider to select a scaling factor? Those typically go from 0.1 to 1.0 and then to 4.0 or 5.0 - with 1.0 (=100%) always in the middle and you might scale with other steps below 1.0 than above. But most import would be to have 1.0 or 100% in the very middle.
Using a normal slider with min=0.1 and max=4.0 does not really look nice to scale a view, component size, graphic or whatever.
Any hints?
Best regards,
Ricky
When using the slider with AngularJs, if I try to set a min or max value for the slider, the tick marks disappear - not sure if I'm doing something wrong or it's a bug...
<!DOCTYPE html>
<
html
>
<
head
>
<
base
href
=
"http://demos.telerik.com/kendo-ui/slider/angular"
>
<
style
>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</
style
>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"//kendo.cdn.telerik.com/2016.3.1118/styles/kendo.common.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"//kendo.cdn.telerik.com/2016.3.1118/styles/kendo.default.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"//kendo.cdn.telerik.com/2016.3.1118/styles/kendo.default.mobile.min.css"
/>
<
script
src
=
"//kendo.cdn.telerik.com/2016.3.1118/js/jquery.min.js"
></
script
>
<
script
src
=
"//kendo.cdn.telerik.com/2016.3.1118/js/angular.min.js"
></
script
>
<
script
src
=
"//kendo.cdn.telerik.com/2016.3.1118/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"example"
ng-app
=
"KendoDemos"
>
<
div
class
=
"demo-section k-content"
ng-controller
=
"MyCtrl"
>
<
div
>
<
h3
>Ticks...</
h3
>
<
input
kendo-slider
ng-model
=
"value"
/>
</
div
>
<
br
><
br
>
<
div
>
<
h3
>No Ticks...</
h3
>
<
input
kendo-slider
ng-model
=
"value"
k-options
=
"options"
/>
</
div
>
</
div
>
</
div
>
<
script
>
angular.module("KendoDemos", [ "kendo.directives" ])
.controller("MyCtrl", function($scope){
$scope.value = 0;
$scope.options = {
max: 100
}
})
</
script
>
</
body
>
</
html
>
Hello
Initially the "internal" tooltip of KendoUI slider shows the value of the current position. I need to set a tooltip text for each position. Example of a slider with 3 values (1, 2, 3). Tooltip for each position:
1 - Ok
2 - Nice
3 - Great
By the documentation I can't figure how to set it directly (inital) or at runtime (trying to access/set tooltip text of slider in change/slide events but can't figure how to access the sliders tooltip).
Is there a way to set a tooltip-text for each slider-position?
Regards
I have an angular 2 application and I want to use the Kendo UI Slider on it. I tried the Beta version of the "Kendo UI for Angular 2" but it did not work properly and I don't want to use a beta version.
How can I use the normal kendo Slider with Angular 2? I want the slider to have ticks with number tick labels. I am using Visual Studio 2015.
Please help.