Hi Kevin,
Greetings from Syncfusion support.
We suggest you to use Microsoft JsInterop to achieve this requirement. In the below codes, we have called a JS method in OnActionComplete event handler. We have set the autocomplete for the inputs with autocomplete as “on“ in grid edit dialog form element as “off”.
Please refer the codes below,
<GridEvents OnActionComplete="OnActionComplete" TValue="Order"></GridEvents>
public async Task OnActionComplete(ActionEventArgs<Order> Args)
{
if (Args.RequestType == Syncfusion.Blazor.Grids.Action.BeginEdit)
{
await Task.Delay(500);
await Runtime.InvokeAsync<object>("DisableAutocomplete");
}
}
[DisableAutocomplete.js]
function DisableAutocomplete() { var gridform = document.getElementsByClassName("e-gridform")[0]; var AutocompleteEnabledInputs = gridform.querySelectorAll('[autocomplete="on"]'); for (var i = 0; i < AutocompleteEnabledInputs.length;i++) { AutocompleteEnabledInputs[i].autocomplete = "off"; }}
|
Please get back to us if you need further assistance.
Regards,
Renjith Singh Rajendran