Sometimes i have unwanted suggestions in a grid on entry (like 11,122 in attached pic).
Is there a way to eliminate this?
1 Answer, 1 is accepted
0
Vasko
Telerik team
answered on 06 Nov 2023, 12:11 PM
Hello David,
Generally speaking, the autocomplete of input elements can be turned off by setting the "autocomplete" attribute to "off", but there are some issues where Google Chrome would not recognize this.
I researched the internet and found that setting the "autocomplete" attribute to "one-time-code" would work in Chrome.
Here is an example JS for applying that attribute to the Input elements inside the Grid
// In case using any editing mode except EditMode="Batch""functionpageLoadHandler() {
disableAutoComplete();
}
Sys.Application.add_load(pageLoadHandler);
// In case using EditMode="Batch"functionOnBatchEditOpened(sender, args) {
disableAutoComplete();
}
functiondisableAutoComplete() {
$('.RadGrid input[id*=_TB_], .RadGrid input[id*=_RNTB_], .RadGrid input[id*=_RDIP]').each(function () {
$(this).attr('autocomplete', 'one-time-code');
});
}