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

EF4 + DataAnnotations: Insert Error

1 Answer 78 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Cody
Top achievements
Rank 1
Cody asked on 08 Apr 2011, 01:21 PM
[I noticed that my company has support tickets so I will resubmit as a support ticket]

I took the sample from the below post download named 262302_RadDataFormRadGridViewRIAExample and took out the code from the EditEnding event handler. 

I am using internal build version 2011.1.405.1040.

http://www.telerik.com/community/forums/silverlight/data-form/editing-child-entities-on-many-to-many-relationship.aspx#0

I added required data annotation attributes to the .metadata.cs file for the DomainService, ran and now when I click the 'Insert' button on the dataform, enter data that will not pass validation, click 'OK', I get a "System.Exception: Submit error is not handled!".  How do I track down what object to add a handler to??? 

My gut says something about the validation and the Entity Insert could be the problem, but I don't know how to track down further.

[Required()]
public string FirstName { get; set; }
 
public Nullable<DateTime> HireDate { get; set; }
 
public string HomePhone { get; set; }
 
[Required()]
public string LastName { get; set; }

(I am really liking the telerik support and enjoying the DataForm)

Thanks,

Cody

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 11 Apr 2011, 03:07 PM
Hello Cody,

To avoid duplication , I am going to post further answers in your support ticket. Can you please meanwhile attach me your project to the support ticket . Once I am able to reproduce the problem here, I am sure we can think of some solution  or a workarround.

Greetings,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DataForm
Asked by
Cody
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or