MetadataType support

7 posts, 0 answers
  1. shlomo
    shlomo avatar
    5 posts
    Member since:
    Dec 2007

    Posted 02 Apr 2014 Link to this post

    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; }
            }
        }
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 08 Apr 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Saxon
    Saxon avatar
    7 posts
    Member since:
    Nov 2015

    Posted 20 Apr in reply to Ivan Ivanov Link to this post

    Is MetadataType now supported ? (for ASP.NET ajax )
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1007 posts

    Posted 25 Apr Link to this post

    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
  6. Saxon
    Saxon avatar
    7 posts
    Member since:
    Nov 2015

    Posted 25 Apr in reply to Angel Petrov Link to this post

    How about RadGrid?
  7. Angel Petrov
    Admin
    Angel Petrov avatar
    1007 posts

    Posted 28 Apr Link to this post

    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
  8. Randy Hompesch
    Randy Hompesch avatar
    46 posts
    Member since:
    Nov 2008

    Posted 03 Dec in reply to Angel Petrov Link to this post

    how about wpf? If not, what's the alternative for dataannotated validations for  ef stuff?

    Thanks ... Ed

     

Back to Top
UI for WPF is Visual Studio 2017 Ready