ASP MVC5 to MVC6 conversion - problem with [ComboDataSourceAction]

Not Answered This post has 0 verified answers | 34 Replies | 27 Followers Thread's RSS feed.

Greg Pringle
Points 1,520
Replied On: Wed, Mar 23 2016 1:13 PM Reply

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?

  • Post Points: 215

All Replies

hotmail
Points 5
Replied On: Sun, Mar 12 2017 9:20 PM Reply

Interesting post! This is really helpful for me. I like it! Thanks for sharing!

- www.hotmail.com
- google mail

  • Post Points: 5
hoa
Points 5
Replied On: Tue, Apr 18 2017 4:47 AM Reply

hotmail login Thanks for your sharing. 

  • Post Points: 5
Ajay
Points 5
Replied On: Tue, May 2 2017 1:57 AM Reply

Clear and brief explanation makes understandable. Thank you

Psychologist in Chennai

  • Post Points: 5
Priya
Points 5
Replied On: Mon, May 8 2017 11:17 PM Reply

Thank you very much, admin, your are a great man and your work is very grateful I am very impressed your work keep it up dear. DAEMON Tools Lite Serial number

  • Post Points: 5
jenny
Points 35
Replied On: Wed, May 31 2017 4:14 AM Reply

{"ClientId":394},{"ClientId":1346},{"ClientId":348},{"ClientId":1565},{"ClientId":552}, hotmail login, hotmail outlook

  • Post Points: 5
Mindbox
Points 5
Replied On: Mon, Jun 5 2017 1:58 PM Reply

Nice one.. Informative! Thank you for the post..
<a href="https://www.mindboxtrainings.com/AWS-Online-Training.html" rel="nofollow">AWS online Training</a></p>
<a href="https://www.mindboxtrainings.com/Salesforce-Online-Training.html" rel="nofollow">Salesforce online Training</a></p>

AWS Online Training

Salesforce Online Training

  • Post Points: 5
happy
Points 5
Replied On: Tue, Jul 4 2017 5:43 AM Reply

This is great websites, I visited some of them but I didn't know that Google offers free games.And this is I play free flash games in this websites.
- happy wheels
- impossible game

  • Post Points: 5
tony
Points 40
Replied On: Thu, Jul 13 2017 11:20 PM Reply

Thank you for giving them this great knowledge, really thank you for sharing, hope you will have such great posts as this more.
usps tracking

  • Post Points: 20
Jane
Points 5
Replied On: Thu, Jul 20 2017 11:31 PM Reply

I was looking for something like this…I found it quiet interesting, hopefully you will keep posting such blogs….Keep sharing.

happy room

  • Post Points: 5
tony
Points 40
Replied On: Fri, Jul 21 2017 4:25 AM Reply

Many thanks for sharing this very diverse opinion post where each expert has no doubt shared his best knowledge on the topic. Have more success in your journey.

slither io

  • Post Points: 5
Davis
Points 5
Replied On: Sat, Aug 12 2017 4:38 PM Reply

Absolutely right, I am agreed with you. If someone wants to know CVS HOURS PHARMACY then this is a good source.

  • Post Points: 5
jocob
Points 25
Replied On: Wed, Aug 16 2017 9:10 AM Reply

This is a really very informative and updated content. Appreciate your hard work and committed with a professional attitude. 

Please check for more informative content.

  • Post Points: 20
Emre
Points 20
Replied On: Wed, Aug 16 2017 1:16 PM Reply

I viewed you blog indeed it’s Really cool. But this post is fantastic. Kitknock

  • Post Points: 20
Jane
Points 25
Replied On: Fri, Aug 18 2017 11:24 AM Reply

Search our directory to instantly connect with companies in your area. Submit your project and get a Free quote from matching companies. Are you a Printing machine?

https://infragistics.com/community/forums/p/105798/518687.aspx

  • Post Points: 20
Page 2 of 3 (35 items) < Previous 1 2 3 Next > | RSS