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

Disabling Inner Tab key Navigation

4 Answers 84 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Olena
Top achievements
Rank 1
Olena asked on 05 Mar 2012, 04:13 PM
Hi guys
Is it any way to stop TAB key moving through the parts of the control (RadCalendar)?
Thanks in advance. 

4 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 09 Mar 2012, 01:04 PM
Hi,

Creating a CalendarButton style and setting IsTabStop to false will do the trick for you. Here is sample code:
    <UserControl.Resources>
        <Style TargetType="calendar:CalendarButton" x:Key="ButtonStyle">
            <Setter Property="IsTabStop" Value="False" />
        </Style>
    </UserControl.Resources>
....
 
<telerik:RadCalendar DayButtonStyle="{StaticResource ButtonStyle}" MonthButtonStyle="{StaticResource ButtonStyle}" YearButtonStyle="{StaticResource ButtonStyle}" DecadeButtonStyle="{StaticResource ButtonStyle}"/>
.....


Regards,
Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Olena
Top achievements
Rank 1
answered on 12 Mar 2012, 11:55 AM
Thanks. It works but it looks like its still one tab stop too much .
Cheers.
0
Accepted
Ivo
Telerik team
answered on 13 Mar 2012, 10:18 AM
Hi Olena,

To accomplish this you will have to edit entirely the RadCalendar's template. You can find a sample project attached.

I hope this helps you.

All the best,
Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Olena
Top achievements
Rank 1
answered on 13 Mar 2012, 03:04 PM
Many thanks!
Regards
Olena
Tags
Calendar
Asked by
Olena
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Olena
Top achievements
Rank 1
Share this question
or