Hi telerik Team
It seems that DataAnnotations don't work in RadControls_for_WPF35_2010_3_1110_Trial.
I build a Testclass and set it as ItemSource on GridView but except DisplayName all attributes are ignored.
Your artikel here say it should work:
http://www.telerik.com/help/wpf/gridview-prevent-column-autogenerate.html
http://www.telerik.com/products/wpf/gridview.aspx#built-in-data-validation
What i'm doing wrong?
PS: I also try 00968RadControls_for_WPF_40_2010_3_1206_TRIAL_hotfix
PPS: It would great if user could add Sample VS Project to posts, not just images.
It seems that DataAnnotations don't work in RadControls_for_WPF35_2010_3_1110_Trial.
I build a Testclass and set it as ItemSource on GridView but except DisplayName all attributes are ignored.
public class Test{ [Display(AutoGenerateField = false)] [RangeAttribute(1, 10)] public int Id { get; set; } [DisplayName("TestNumber")] [Display(Order = 1)] [Required(AllowEmptyStrings = false, ErrorMessage = "Exception")] public string Number { get; set; } [Display(Order = 0)] [Required(AllowEmptyStrings = false, ErrorMessage = "Exception")] public string Name { get; set; }}List<Test> testList = new List<Test>();Test test = null;for (int i = 0; i < 10; i++){ test = new Test(); test.Id = i; test.Name = "Name" + i.ToString(); test.Number = i.ToString(); testList.Add(test);}radGridView.ItemsSource = testList;Your artikel here say it should work:
http://www.telerik.com/help/wpf/gridview-prevent-column-autogenerate.html
http://www.telerik.com/products/wpf/gridview.aspx#built-in-data-validation
What i'm doing wrong?
PS: I also try 00968RadControls_for_WPF_40_2010_3_1206_TRIAL_hotfix
PPS: It would great if user could add Sample VS Project to posts, not just images.
