Hi, I am converting my existing working project from MVC5 to MVC6 by creating a new MVC6 project and moving things over bit by bit.
I have run into a strange issue with [ComboDataSourceAction]. In my old MVC5 project it works fine, but in my new project it returns different JSON (just containing the IDs, not the text I want to display):
[ComboDataSourceAction]
public ActionResult ClientComboData()
{
IEnumerable<ClientName> clientNames = GetClientNames();
return View(clientNames);
//return Json(clientNames);
}
If I swap in the commented out line, it seems to return Json with the names included and display them in the combobox and the drop down list shows them correctly but when I type anything in the autocomplete I get the following error:
Unhandled exception at line 26, column 4876 in http://localhost:62643/ignite ui/js/infragistics.lob.js Unable to get property 'locale' of undefined or null reference
Here is the class it is serializing:
public class ClientName
public int ClientId { get; set; }
public string FileAsName { get; set; }
Here is the content of the JSON when I hit F12 in IE and look at the network traffic.
[{"ClientId":1180},{"ClientId":1516},{"ClientId":990},{"ClientId":1212},{"ClientId":754},{"ClientId":1216},{"ClientId":1190},{"ClientId":516},{"ClientId":817},{"ClientId":1741},{"ClientId":969},{"ClientId":818},{"ClientId":620},{"ClientId":318},{"ClientId":954},{"ClientId":984},{"ClientId":1007},{"ClientId":603},{"ClientId":858},{"ClientId":973},{"ClientId":394},{"ClientId":1346},{"ClientId":348},{"ClientId":1565},{"ClientId":552},{":totals:":"1380:1380"}]
How can I fix this?
I Always issue and confusion in MVC5 to MVC6, Here I am very clarified The issue, Thanks very much for sharing this helpful coding and commend.
couponeye.blogspot.in/.../autodesk-promo-codes-and-coupons.html
I genuine need this code, I also the same problem during coding time, thanku very much for sharing this necessary information, I really nedd this code. thaku
"Happy Code"
couponseye.wordpress.com/.../
HeyYou lost your windows recovery key. And looking for new key visit
Windows 10 product key
All the contents you mentioned in postis too good and can be very useful. how to hack wifi
very nice post
McAfee Phone Number