Editor .NET which is validated first, Global or Field Validator?

Editor .NET which is validated first, Global or Field Validator?

washuit-iammwashuit-iamm Posts: 123Questions: 52Answers: 2

I am writing a global editor validator, I am converting a possible field to a bool like so:

inventoryServer.TryGetValue("IsVirtual", out var isVirtual)
if (bool.TryParse(isVirtual.ToString(), out var isVirtualBoolean))
{
    // dependency validation
}

But I already have

.Field(new Field("InventoryServer.IsVirtual")
  .Validator(Validation.Boolean()))

It would be nice for me to be able to just cast IsVirtual if I can trust the Field validator ran and handle that for me.

I did not see the docs mention order https://editor.datatables.net/manual/net/validation

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.