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

Slider dragging problem

1 Answer 50 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Ning
Top achievements
Rank 1
Ning asked on 26 Nov 2012, 11:38 AM
Hi,

The slider with previous releases has worked perfectly for me. However, since I updated to the latest Telerik release, as soon as I start to drag the slider, the browser pops up a "Microsoft JScript Runtime Error: Invalid arguments" error box. The problem only happens when I drag the marker. If I click on a different part of the slider, the marker moves to the clicked position fine.

When I tried to debug the problem, the debugger shows the following code:

...onDragStart:function(v){var r=v.element;
if(r===this._selectedRegionElement){return this._onDragStartRange(v);
}var k=parseInt($telerik.getCurrentStyle(r,"left",0));
if(isNaN(parseInt(r.style.left))){r.style.left=k+"px";
}var f=parseInt($telerik.getCurrentStyle(r,"top",0));
if(isNaN(parseInt(r.style.top))){r.style.top=f+"px";
}...

And the problem happens in the highlighted line. The value of "$telerik.getCurrentStyle(r,"left",0)" is "auto", and "r.style.left" is "". So you can see where the problem is. Any suggestions?

Thanks
Ning

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 29 Nov 2012, 08:28 AM
Hi Ning,

This is a known issue, which happens when the drag handle of a vertical RadSlider is dragged under IE7 (including Compatibility mode). It is brought to the attention of our developers and it will be fixed in a future release of the RadControls for ASP.NET AJAX, nevertheless I am not able to provide a firm estimate when a solution will be available. You can follow the status of this issue via its PITS Item.

For the time being you can use the following workaround - just add the CSS code below in the head tag of your page:
<style type="text/css">
    * + html div.RadSlider .rslVertical a.rslDraghandle
    {
        left: -9px !important;
    }
</style>


Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Slider
Asked by
Ning
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or