Style of DataForm ReadOnlyTemplate

2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Jul 2012

    Posted 03 Oct 2012 Link to this post

    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?

  2. Yoan
    Yoan avatar
    1051 posts

    Posted 05 Oct 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top