Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Maskedtextbox Tab Indexing problem

Not answered Maskedtextbox Tab Indexing problem

Feed from this thread
  • Ramski avatar

    Posted on Oct 17, 2011 (permalink)

    Hi Telerik,

    I have a problem on tab indexing inside the masked textbox, when the focus is on the textbox, I have to press tab 4x before the focus changed to another control, I already set the other properties inside the textbox to IsTabStop="False" but to no avail.

    this only happens when inside a radgridview.

    Thanks,

    Reply

  • Ramski avatar

    Posted on Oct 17, 2011 (permalink)

    <Style  TargetType="telerik:RadMaskedTextBox">
        <Setter Property="Mask" Value="aaaa"/>
        <Setter Property="MaskType" Value="Standard"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsReadOnly" Value="False"/>
        <Setter Property="Placeholder" Value="_"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="SelectionOnFocus" Value="SelectAll"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="telerik:RadMaskedTextBox">
              <Grid>
                <Border x:Name="InnerBorder" BorderThickness="1" Background="White" BorderBrush="#FFBBBBBB">
                  <Grid>
                    <Telerik_Windows_Controls_MaskedTextBox:ExtendedTextBox x:Name="PART_ExtendedTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="True" IsReadOnly="{TemplateBinding IsReadOnly}" TabIndex="{TemplateBinding TabIndex}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{StaticResource ColorSolidDarkGrey}" FontSize="{StaticResource SmallFontSize}" FontFamily="{StaticResource DefaultFontFamily}" TextOptions.TextHintingMode="{StaticResource DefaultTextHintingMode}" Margin="3,0" VerticalAlignment="Center"/>
                    <Border x:Name="EmptyContentPresenter" IsHitTestVisible="False" Visibility="Collapsed">
                      <ContentControl x:Name="ContentElement" ContentTemplate="{TemplateBinding EmptyContentTemplate}" Content="{TemplateBinding EmptyContent}" FontStyle="Italic" IsTabStop="False" Foreground="#FF999999" Margin="3,0" VerticalAlignment="Center"/>
                    </Border>
                    <Telerik_Windows_Controls_Chromes:ValidationTooltip x:Name="ValidationTooltip" TooltipPlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" telerik:StyleManager.Theme="{StaticResource Theme}" TooltipContent="{Binding (Validation.Errors), RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed" BorderBrush="{x:Null}" Opacity="0"/>
                  </Grid>
                </Border>
                <Border x:Name="MouseOver1" BorderThickness="1" BorderBrush="#FF84AFD3" Opacity="0"/>
                <Border x:Name="FocusedVisual" BorderThickness="1" Visibility="Collapsed" BorderBrush="#FF84AFD3"/>
                <Border x:Name="DisabledVisual" BorderThickness="1" Visibility="Collapsed" Background="#7FFFFFFF" BorderBrush="#FFDDDDDD"/>
              </Grid>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
      </Style>

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Oct 20, 2011 (permalink)

    Hi Ramski,

     Could you please try this scenario with the RadMaskedInput controls instead of the RadMaskedTextBox and let us know if this is still reproducible? Is it possible for you to send us more from your code, especially the way you use the MaskedTextBox in the GridView? Thank you in advance for your cooperation. 

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Maskedtextbox Tab Indexing problem
Related resources for "Maskedtextbox Tab Indexing problem"

Silverlight MaskedTextBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]