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

Slider issue when not initially visible on the view

1 Answer 60 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Artie
Top achievements
Rank 1
Artie asked on 24 Jun 2015, 06:00 PM

We've run into a minor problem with the Kendo slider.  When navigating to a new view, if that view has a slider (or multiple sliders) on it that are in an element that is not visible, the user can not change the value of the slider with the mouse.  You can use the left/right arrows to change the value (and the events fire), but the slider won't move.

 If you then navigate off of the view, and then back onto that same view, the slider then works.  I've put a little demo together in the Dojo that illustrates what I'm talking about:

http://dojo.telerik.com/ihExU

  1. Click "Load Secondary View:
  2. Click "Show Panel 2"
  3. Try to move the slider with the mouse, and then try with the keyboard arrows
  4. Click "Back"
  5. Click "Load Secondary View"
  6. The slider now works, and has the value that was previously "set" by the arrow keys.

Any suggestions as to a workaround?‚Äč

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 26 Jun 2015, 10:43 AM
Hi,

you can call the resize method to refresh the slider dimensions.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Slider
Asked by
Artie
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or