I'm trying to set the field length in my Syncfusion sfDataForm control and I'm setting it in XAML.
Here is the code:
[Display(GroupName = "Address")]
[DataFormDisplayOptions(RowOrder = 2, ItemsOrderInRow = 1)]
[StringLength(2, ErrorMessage = "State Abbr should not exceed 2 characters")]
public string State { get; set; }
But this has no effect on the displayed form.
How/where is the correct place to set the StringLength in .