public void LocalModelValueChanged(ValueChangedArgs args) { SetItemValue(args.Field, args.State); //if (args.State.ValidationMessages.Any()) { var validations = _dataValidationProvider.ValidateModelProperty(_form, ModelItem, args.State.RowIndex, args.Field.BindingProperty, Fields); UpdateFieldStateValidations(validations, args.State.RowIndex, args.Field.BindingProperty); } }
//private void RowMouseOver(MouseEventArgs args, int rowIndex) //{ // GetRowState(rowIndex).IsMouseOver = true; //} //private void RowMouseOut(MouseEventArgs args, int rowIndex) //{ // if (ModelItems.Count != 0) // { // GetRowState(rowIndex).IsMouseOver = false; // } //} public void LocalModelValueChanged(ValueChangedArgs args) { SetItemValue(args.Field, args.State); if (args.State.ValidationMessages.Any()) { var validations = _dataValidationProvider.ValidateModelProperty(Form, ModelItems[args.State.RowIndex], args.State.RowIndex, args.Field.BindingProperty, Fields); UpdateFieldStateValidations(validations, args.State.RowIndex, args.Field.BindingProperty); } // await ModelValueChanged.InvokeAsync(args); }