Autofill supported with AutoComplete

19 Dec 20221 minute to read

The AutoComplete supports the autofill behavior with the help of autofill property. Whenever you change the input value, the AutoComplete will autocomplete your data by matching the typed character. Suppose, if no matches were found, then AutoComplete doesn’t suggest any item.

In the below sample, showcase that how to work autofill with AutoComplete.

@Html.EJS().AutoComplete("games").Autofill(true).Placeholder("Select a game").PopupHeight("200px").DataSource((IEnumerable<object>) Syncfusion.EJ2.DropDowns.AutoCompleteFieldSettings { Value = "Name" }).Render()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebApplication1.Models;

namespace WebApplication1.Controllers
    public class AutoCompleteController : Controller
        public ActionResult autofill()
   = new Countries().CountriesList();
            return View();


View Sample in GitHub.