void UpdateElements(ChangeEventArgs c) { // unable to get onchange to fire with <InputText> but OK with <input /> // ValidationMessage support is nice because it works with js in the browser // However I have not been able to bind to a model.property dynamically // Using oninput means the server is called at every keystroke, so no // likely performance issues if use own validation (round trip likely to take more time) // PLUS intention is to use in browser version, and want to validate using other field values _formElement.Value = c.Value.ToString(); // call method to change the other elements FormProcessor.UpdateElementsAsync(Elements, AllSettings, FormDisplayOnly); }
private async Task ChangeTime(int interval) { _timeSpan += TimeSpan.FromMinutes(interval); if (IsStart) { _block.Start = _block.Start.Date.Add(_timeSpan); } else { _block.Duration = _timeSpan; } SetAllowSettings(); SetValueString(); // Elements is updated await FormProcessor.UpdateElementsAsync(Elements, AllParams, DisplayOnly); await BlockChanged.InvokeAsync(_block); }