Expose autocomplete attribute for Kendo TextBox
Upon initializing the Kendo UI TextBox, the autocomplete attribute is initially set to off.
While this is suggested on MDN in most scenarios, there are use-cases where it is necessary to set autocomplete to new-password to avoid auto-filling.
Extend the API to allow setting the autocomplete attribute. This could be done in a similar way as the inputMode configuration.
Use jQuery attr method to set the item in the Ready event
$(function(){
$('#textBox').attr('autocomplete', 'new-password');
});
Having similar issue
It would be nice if in the HTML Attributes it would use that value regardless of default. I was trying to do this which does not work.
Html.Kendo().TextBoxFor(x => x.NewPassword).HtmlAttributes(new { autocomplete = "new-password"})