DataFormField Templateing

2 posts, 0 answers
  1. Big G
    Big G avatar
    19 posts
    Member since:
    Jan 2013

    Posted 04 Feb 2013 Link to this post

    How do you template a DataFormField so that the font used is say blue and the border of the box is blue?

    I tried going through the source and copying to style from there but all I could do was create a big blue border around the DataFormField which is not what I am after.

    EDIT:
    Am I right in thinking that the DataFormField is automatically generated so you can't really style it because it could be a textbox, or listpicker etc...
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 06 Feb 2013 Link to this post

    Hello Gareth,

    Thanks for writing and for your question.

    Yes, you are correct: the DataFormField is actually a base class for all different editor fields that RadDataForm automatically generates according to the associated property type on your business object.

    RadDataForm exposes the DataFieldStyle property which you can use to apply a different style to the data form fields.

    Since RadDataForm is a relatively new component, we will appreciate your feedback on it and your suggestions that might help us improve it.

    Thanks for your time.

    Greetings,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top