I really need some help here.
I'm using MVC3 with Visual Studio 2010. with jquery 1.6.2 AND jquery-ui 1.8.14.
I have a jQuery grid on a view that will not show data even though I've verified that I'm getting data back from the database.
The grid is set up very simply (no features). It's using a datasourceURL to retrieve the data and the corresponding action is getting. When I return the view, I've tried passing in the ObjectResult (no data displayed, no errors). I've tried passing in an IQueryable, but this gives me an error in the javascript (1.6.2) that says "Microsoft JScript runtime error: The remote request to fetch data has failed: (error) undefined". This error is thrown at the point where I'm returning the view for the grid request.
If I set up a grid with the exact same parameters, but use the columns set in the demo project "Taz" created, and even use the same dataSourceURL, but change the returned data to be the auto-generated 1000 records of accounts, it works fine.
What am I missing?
Thanks,
Tony
Ok, I'll work around the empty result issue. I'm also having to cast to a generic list for results to show up, but i can live with that. This product isn't going live until the end of the year so I look forward to seeing some issues resolved before then.
Thanks for the help.
Hello,
Here is the latest internal build.
hi,
the issue about the exception when there are no records in teh underlying datasource is not related to the jquery version (it's part of the server-side logic). That's fixed but it's not available in the first service release build. I am sure our development support team will be able to provide you with the internal build which has this fix as well.
Thank you,
Angel
Hello Tony,
Thank you for the fast update.
You are correct , the version of the jQuery the cause.
The first service release of the toolset is not officially tested with the 1.6.2 version
If you use v 1.4.4 for example you won't experience the issue.
ok, installed the service release and updated my project.
However, I'm still getting the error for an empty result set (List<Account).
I updated the scripts, CSS, and the Infragistics.Web.Mvc.dll
Maybe it's the scripts?
<script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-1.8.14.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/json2.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.tmpl.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/ig.ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/ig.ui.grid.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/ig.ui.editors.min.js")" type="text/javascript"></script>
The error is in jquery-1.6.2.js
The message is: Microsoft JScript runtime error: The remote request to fetch data has failed: (error) undefined
If there are records in the database, then I don't get the error.