Hi,
I'm using the Telerik spreadsheet with MVC wrappers to create an input form and am trying to create a validation error when a cell is empty. I've tried various things along the lines of the below. The obvious way to do this seems to be to set AllowNulls = false but this doesn't behave in the same way that other custom validation does, it immediately adds a red validation check to every null cell with the validation check applied and never triggers the message supplied in the MessageTemplate. If setting AllowNulls(true) then it seems like the custom validation rule doesn't trigger on empty cells, so it seems like I can use the custom validator to check for anything other than a cell being empty.
cells.Add()
.Validation(validation => validation
.DataType("custom")
.From("LEN(B" + currentRowNo + ") > 0")
.AllowNulls(false)
.Type("reject")
.TitleTemplate("A Provider Name is Required")
.MessageTemplate("Please enter a Provider Name"));
Regards
Michael