JqGrid with autocompletion cant parse data from controller to view
If you use item.Id and item.Name on the client side you should return not the List<String>. Instead of that you should returns the list of new {Id=brand.BrandId, Name=brand.BrandName}. You should just use LINQ instead of foreach: return Json ((from brand in brands select new { Id = brand.BrandId, Name = brand.BrandName }).ToList()); UPDATED: I modified … Read more