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

MetadataType support

6 Answers 68 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
shlomo
Top achievements
Rank 1
shlomo asked on 03 Apr 2014, 04:34 AM
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; }
        }
    }

6 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 08 Apr 2014, 07:44 AM
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
 

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
Angel Petrov
Telerik team
answered on 25 Apr 2016, 12:01 PM
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
0
Saxon
Top achievements
Rank 1
answered on 25 Apr 2016, 01:55 PM
How about RadGrid?
0
Angel Petrov
Telerik team
answered on 28 Apr 2016, 06:53 AM
Hello,

Currently the data bound controls for ASP.NET AJAX do not support such validation. When developing you can use regular ASP.NET validators to validate the user input.

Regards,
Angel Petrov
Telerik
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

 

Tags
DataForm
Asked by
shlomo
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Saxon
Top achievements
Rank 1
Angel Petrov
Telerik team
Randy Hompesch
Top achievements
Rank 1
Share this question
or