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

Disable the handle focus when readonly

2 Answers 123 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Abner
Top achievements
Rank 1
Abner asked on 07 May 2014, 03:30 PM
Hi guys,

I have been trying to disable focus in the handle when I press tab or shift tab, because my control is readonly, I cannot click that is working, but if I press tab from another control to slider the handle focus and i can use arrows up down left and right of my keyboard.

I tried to set IsTabStop = true, but didn't work. I just want to ignore the control when press tab key going to the next control that is not readonly.

Is that possible? Disable the handler when readonly.

I attached a file that have 3 slider, notice that the control in the middle is readonly, but is focus when I pressed tab key.

2 Answers, 1 is accepted

Sort by
0
Abner
Top achievements
Rank 1
answered on 07 May 2014, 04:39 PM
I'm trying to do via codebehind.
0
Ianko
Telerik team
answered on 08 May 2014, 11:33 AM
Hello Abner,

From the provided snapshot I can only make assumptions how have you set the RadSlider to be as a read-only element.

On my end using the following sample markup is working fine. The middle slider is disabled and focusing with the tab or shift+tab shortcuts does not allow further value changes by the user.

<telerik:RadSlider runat="server"></telerik:RadSlider>
<telerik:RadSlider runat="server" Enabled="false"></telerik:RadSlider>
<telerik:RadSlider runat="server"></telerik:RadSlider>


Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Slider
Asked by
Abner
Top achievements
Rank 1
Answers by
Abner
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or