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

Cannot Add Verification on A Telerik RadMaskedTextBox

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top Gun
Top achievements
Rank 1
Top Gun asked on 25 Jan 2013, 10:02 PM
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?

3 Answers, 1 is accepted

Sort by
0
Top Gun
Top achievements
Rank 1
answered on 31 Jan 2013, 12:10 AM
Any news on this?
0
Plamen
Telerik team
answered on 31 Jan 2013, 12:00 PM
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
0
Top Gun
Top achievements
Rank 1
answered on 31 Jan 2013, 03:08 PM
Thanks for the reply. 
Tags
General Discussions
Asked by
Top Gun
Top achievements
Rank 1
Answers by
Top Gun
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or