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

Auto Generate fields and complex types

2 Answers 94 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 01 Jul 2011, 06:56 PM
Is there a way to get the DataForm to display complex types when auto generating fileds?


2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 05 Jul 2011, 04:01 PM
Hello Andrew,

Since RadDataForm does not know what kind of editor to  create for a complex type, you will need to use some custom code to prepare the editor inside the AutoGeneratingField event handler.

The field is ContentControl and inside the handler you may replace the default textbox content  , with UI element by your choice.

In case you have troubles implementing this , just send me a small project with your entities and I will implement the missing part regarding the DataForm field generation for the complex type for you .

Regards,
Pavel Pavlov
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!

0
Hai
Top achievements
Rank 1
answered on 02 Dec 2011, 01:16 AM
I have the same issue. But I can't find the ContentControl property in the AutoGeneratingFieldEventArgs. It has a DataField but its Content and ContentTemplate are both dull. Can you share a code snippet here? Thanks.
Tags
DataForm
Asked by
Andrew
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Hai
Top achievements
Rank 1
Share this question
or