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

DataFormDataField and TabStop behavior

1 Answer 81 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Hubert
Top achievements
Rank 1
Hubert asked on 16 Apr 2012, 11:45 AM
Hi,

in the RadControls WPF Demo Q3 2011 SP1, the cursor cycles through all enabled fields on a RadDataForm by
pressing the Tab key. That's the expected behavior, but in Version 2012.1.402.40 the cursor cycles through all
enabled fields and their corresponding labels.

Is this correct and the expected behavior or is it possible to configure the TabStop behavior
for the label property?

I looked around for a solution and found the thread label-customization-in-dataformxfield
which guided me to the property LabelStyle.

I copied the posted code an set the property IsTabStop to false, but the XAML didn't compile because of
'TextBlock' TargetType does not match type of element 'ContentControl'.
I set the TargetType to ContentControl and it works as expected.

<telerik:RadDataForm.LabelStyle>
     <Style TargetType="ContentControl">
         <Setter Property="IsTabStop" Value="False" />
     </Style>
</telerik:RadDataForm.LabelStyle>

kind regards,
Hubert

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 17 Apr 2012, 09:00 AM
Hi Hubert,

We have replaced the 'Label' with a 'ContentControl'. So this is correct and it would be the expected behaviour. The way you have changed it is the right way.

The documentation will be updated accordingly.

Greetings,
Didie
the Telerik team

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

Tags
DataForm
Asked by
Hubert
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or