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

AutoGeneratedFieldsPresenter Item templating

1 Answer 48 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 21 Jul 2011, 11:17 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 22 Jul 2011, 03:00 PM
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!

Tags
DataForm
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or