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

Style of DataForm ReadOnlyTemplate

1 Answer 71 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 03 Oct 2012, 05:59 PM
I am  using the dataform to display data only.

I don't particularly like the greyed out style of the readonlytemplate.

How can I change the fields from being greyed out when data is displayed?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 05 Oct 2012, 07:30 AM
Hi David,

 I have already answered your support ticket, but I will post my answer again in case someone else needs the same information:

You can predefine the style of the TextBox which is in the DataField. You should change the background of "ReadOnly" visual state. Check the following code snippet:

<Border x:Name="ReadOnlyVisualElement" Background="Yellow" Opacity="0"/>

For your convenience I attached sample project which meets your requirements.

All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataForm
Asked by
David
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or