Dose the DataForm looking on the MetadataTypeAttributes for validations ?
I hava a wcf data service, that create a auto generated class, i added a partial class with MetadataType, but the dataform validation ignore the settings
[MetadataType(typeof(Person.Metadata))]
public partial class Person
{
internal sealed class Metadata
{
[Required]
public string FirstName { get; set; }
}
}
I hava a wcf data service, that create a auto generated class, i added a partial class with MetadataType, but the dataform validation ignore the settings
[MetadataType(typeof(Person.Metadata))]
public partial class Person
{
internal sealed class Metadata
{
[Required]
public string FirstName { get; set; }
}
}
6 Answers, 1 is accepted
0
Hi,
With the current version attributes defined in metadatatype partial classes are not supported. I have logged it in as a feature rquest in the feedback portal, so that you can track its status.
Regards,
Ivan Ivanov
Telerik
With the current version attributes defined in metadatatype partial classes are not supported. I have logged it in as a feature rquest in the feedback portal, so that you can track its status.
Regards,
Ivan Ivanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Saxon
Top achievements
Rank 1
answered on 21 Apr 2016, 04:56 AM
Is MetadataType now supported ? (for ASP.NET ajax )
0
Hi,
I am sorry to say but currently there is no MetadataType support for the ASP.NET AJAX RadDataForm control. In order to validate its input one can follow the approach demonstrated here.
Regards,
Angel Petrov
Telerik
I am sorry to say but currently there is no MetadataType support for the ASP.NET AJAX RadDataForm control. In order to validate its input one can follow the approach demonstrated here.
Regards,
Angel Petrov
Telerik
0
Saxon
Top achievements
Rank 1
answered on 25 Apr 2016, 01:55 PM
How about RadGrid?
0
0
Randy Hompesch
Top achievements
Rank 1
answered on 03 Dec 2016, 01:29 PM
how about wpf? If not, what's the alternative for dataannotated validations for ef stuff?
Thanks ... Ed