Cannot Add Verification on A Telerik RadMaskedTextBox

4 posts, 0 answers
  1. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 25 Jan 2013 Link to this post

    I am using SL5 and Test Studio.  I Built a small SL app with some labels and a RadMaskedTextBox.  (See xaml below.)
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" Height="115" Width="185">
            <StackPanel Orientation="Vertical">
                <Border Style="{StaticResource GridCellDataStyle}">
                    <sdk:Label Name="FirstName" Content="John" HorizontalAlignment="Stretch" FontSize="15" />
                </Border>
                <Border Style="{StaticResource GridCellDataStyle}">
                    <sdk:Label Name="LastName" Content="Doe" HorizontalAlignment="Stretch" FontSize="15" />
                </Border>
                <Border Style="{StaticResource GridCellDataStyle}">
                    <sdk:Label Content="{Binding Path=UserName}" HorizontalAlignment="Stretch" FontSize="15" />
                </Border>
                <Border Grid.Row="1" Grid.Column="2" Style="{StaticResource GridCellDataStyle}">
                                    <telerik:RadMaskedTextBox MaskType="None" Width="140" Value="{Binding CurrentQuantity, Mode=TwoWay}" IsReadOnly="True" IsEnabled="False" MaxLength="50"  />
                </Border>
            </StackPanel>
        </Grid>

    I created a test in Test Studio and began recording.  However, I cannot build a verification on the RadMaskedTextBox.  The verification selector will highlight in red my other controls.  But not the RadMaskedTextBox.  See attached picture.  How will I verify data in the RadMaskedTextBox control?
  2. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 30 Jan 2013 Link to this post

    Any news on this?
  3. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 31 Jan 2013 Link to this post

    Hello Top Gun,

    Thank you for providing the sample XAML code. I was able to reproduce the issue and filed a bug on this behavior which you can track here: Public URL.

    I have also updated your Telerik points accordingly for discovering the issue. 

    The workaround is to locate the RadMaskedTextBox element directly in the Silverlight Visual Tree and build the desired verification from there. See this video for more information.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  4. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 31 Jan 2013 Link to this post

    Thanks for the reply. 
Back to Top