AutoGeneratedFieldsPresenter Item templating

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    18 posts
    Member since:
    Oct 2010

    Posted 21 Jul 2011 Link to this post

    Hello,

    I have a RadDataForm which is currently auto-generating all of its fields. I've gone into the PART_AutoGeneratedFieldsPresenter template and changed the ItemsControl's StackPanel into a Wrap panel so that the RadDataForm is using as little screen real estate as possible.

    The issue I'm having is that I cannot find a place to modify the template of the internal items. As you can see on the attached image, the longer labels are being overlapped by the data fields. This could be mitigated by a template which limited the data field width and right aligning them.

    Is there a way to access the template that the AutoGeneratedFieldsPresenter is using? If so, how do I access it?

    Thanks,

    Ryan Brown
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 22 Jul 2011 Link to this post

    Hello Ryan,

    I have prepared a project, extracting RadDataForm's templates and resources. It is attached for your reference. In order to customize the way in which DataFormDataFields' labels are measured you should modify PART_DataFormDataFieldGrid. Please, do not hesitate to contact us immediately if any further inquires occur.

    All the best,
    Ivan Ivanov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
Back to Top