// The client event TickmarkLabelMouseDown takes two parameters sender and e // sender is the object which is raising the event // e is the SliderTickmarkMouseEventArgs function WebSlider1_TickmarkLabelMouseDown(sender, e) { var slider = $find("WebSlider1"); //Checks if control is enabled or disabled var check = slider.get_enabled(); //Gets main value as object var value = slider.get_value(); //Gets percent between edge of track bar(working area) and a tickmark label which is closest to location of mouse var resultVar = e.get_tickPercent(); }
this.WebSlider1.ClientEvents.TickmarkLabelMouseDown = "WebSlider1_TickmarkLabelMouseDown";
this.WebSlider1.ClientEvents.TickmarkLabelMouseDown = "WebSlider1_TickmarkLabelMouseDown";
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2