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

[Solved] How do I reference a slider after creation?

1 Answer 64 Views
Slider for HTML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Weinert
Top achievements
Rank 1
Chris Weinert asked on 30 Sep 2012, 10:28 PM
var slider1 = new Telerik.UI.RadSlider(document.getElementById("slider"));
slider1.value = 2.25;
 
function getSliderValue() {
  //I'd like to reference the RadSlider in this function...how do I?
}

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 01 Oct 2012, 05:12 AM
Hi,

You can get the Slider (and any other win-control for that matter) from the winControl expando of the element with which the control has been created:
var slider = document.getElementById("slider").winControl;
//slider.value

Greetings,
Simon
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
Slider for HTML
Asked by
Chris Weinert
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or