We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I get the slider tooltip to appear when the slider is first loaded?

Thread ID:

Created:

Updated:

Platform:

Replies:

147551 Sep 13,2019 11:46 AM UTC Sep 13,2019 01:24 PM UTC ASP.NET Core - EJ 2 1
loading
Tags: Slider
Mike
Asked On September 13, 2019 11:46 AM UTC

Hi,


I’m using Syncfusion.EJ2.AspNet.Core, version 16.4.0.46.


I’ve created a range slider which works as I need it to except for one aspect. When the page loads and the slider is first loaded, I want the slider tooltip to appear and display the initial value of the slider, just as it does when the slider handle is clicked.


I’ve tried this in $(document).ready(function () , which does not work:

sliderHandle = document.getElementById('myslider).querySelector('.e-handle');

sliderHandle.click();


I’ve attached two screenshots to illustrate.


Can anyone please tell me how to achieve what I need?


Mike

 


Attachment: SliderScreenshots_468484d0.zip

Mike
Replied On September 13, 2019 01:24 PM UTC

If it helps anyone else, I just received a working solution from a Syncfusion ticket I opened. The key is this to use  this:

sliderObj = document.getElementById("slider").ej2_instances[0]; 
sliderObj.tooltipToggle(sliderObj.firstHandle); // pass slider Handle element as an argument.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon