This is a migrated thread and some comments may be shown as answers.

Slider in angularjs is not properly bound to the ng-model property

2 Answers 36 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Mathieu
Top achievements
Rank 1
Mathieu asked on 23 Dec 2014, 10:25 PM
Hi

In a specific context where a set of sliders are hosted in different kendo tabs,
only the sliders contained in the tab that is accessed first will have their cursors initialized at their proper
position.  The sliders in all other tabs will be set at 0.

This plunk illustrates the issue
http://plnkr.co/edit/FP8c5o?p=info

Each tab has a slider with 100 positions, each should be initialized a 75.  Click on Tab1 at first, position is correct but Tab2's slider is wrong,
Do the reverse and the roles will switch.

This issue seems to have appeared around Kendo 2014 Q2 SP1 (2014.2.903) and can be seen in all subsequent versions.

In the plunk's index.html file, if you revert back to Kendo 2014 Q2 ( 2014.2.716 ) all the sliders start to behave as I would expect.

Thanks

Mathieu





2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 25 Dec 2014, 09:44 AM
Hello Mathieu,

You need to use k-ng-model in order for the widget to be updated properly, as described in the online documentation. Here is the updated plunkr.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mathieu
Top achievements
Rank 1
answered on 02 Jan 2015, 03:26 PM
It works, thank you.
Mathieu
Tags
Slider
Asked by
Mathieu
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Mathieu
Top achievements
Rank 1
Share this question
or