I have a grid on a page. One of the columns is for a person's middle initial. In my C# code, I have it defined as follows:
[StringLength(1, ErrorMessage = "The middle initial cannot exceed 1 character")]<
br
> [Display(Name = "Middle")]<
br
> public string MiddleInitial { get; set; }<
br
>
In the grid, if I enter something like "LLL" for the middle initial, I get a error in the grid telling me I've enter too many characters. This is what I would expect. However, if I enter something like " L" (notice the space before the L), the grid gives me no errors. But, then, when the row is saved I get a server validation error. because of too many characters.
Why isn't the Kendo Grid handling the second scenerio correctly, and how can I work around this?