ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Problem Using Grid in MVC5
Title:
B
I
{code}
?
Hello everyone, I have been using AwesomeGrid for about 2 mvc4 Projects Now and It has been working fine, However I am completely bumped when I tried the mvc5 Branch. I basically have a grid and controller setup as follows return Json(new GridModelBuilder<ZoneListModel>(model, g) { Key = "Id", Map = o => new { o.Id, ZoneName = o.Name, o.GCount } }.Build()); The problem is that The controller actually returns the data in json of course but somehow strangely, The Grid just display empty table cells without any values at all. The number of rows however corresponds to the records returned by the controller method Please what Am I doing wrong A speedy answer will be appreciated
Save Changes
Cancel
seamfaces
asked at 10 Apr 2015
maybe Name contains some html and it's invalid try Map = { o => Name = HttpUtility.HtmlEncode(o.Name) ... also look at the browser console, see if you get any errors
at 10 Apr 2015
Omu
I looked at the console, no errors whatsoever, Just blank and I tried your code, still did not work
at 10 Apr 2015
seamfaces
HERE is the url http://test.blwcampusministry.net/Setup/ZoneIndex
at 11 Apr 2015
seamfaces
tried mapping local /scripts/awesomemvc to AwesomeMvc.js on local and it works, the problem is in your script bundling/minification tool
at 11 Apr 2015
Omu
Thanks, Figured that out. But THANK YOU REALLY I appreciate
at 11 Apr 2015
seamfaces
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK