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
I missed it when I checked before. didn't scroll down far enough. I'll install and let you know.
Hello Anthony,
The first service release is already available (since 11th July I think).
This service release is available under your account at the Infragistics Website.
To download the service release, log in to ‘My IG’ and select ‘Keys & Downloads’.
Select the appropriate tab for this product; then the license key.
The available service releases (Hot Fixes) should now be listed on the page.
As Angel mentioned the issues that you have reported are already fixed in the last SR
( for example : not showing the records when using 1.5.1 version of jQuery)
I have attached the new Infragistics.Web.Mvc.ll and ig.ui.min.js file in a zipped format.
Let us know if you are still able to reproduce the behavior with the latest service release
Any ETA on the hotfix?
Hi Tony,
sorry to hear that you are having troubles with this. The no records issue is something that we got reported a while ago, and fixed. I am sure if you get the first service release build you won't be experiencing this any more. Regarding the difference between the two code statements above, it kind of looks pretty identical to me, but i will have a deeper look and follow up.
Angel
I'm about to just give up on the whole thing. This has been extremely frustrating.
I can get it to work IF i first iterate through the results putting them into a list and then pass the list to the view. Like this:
var AccountList = from a in db.GetAccountList(bkNum, Serv) select a; List<Account> MyAccountList = new List<Account>(); foreach (Account item in AccountList) { MyAccountList.Add(item); } return View(MyAccountList.AsQueryable<Account>());
IF I do this, it fails:
var AccountList = from a in db.GetBankAccountList(202, 2) select a; return View(AccountList.AsQueryable<Account>());
Also, IF, as in the first example, there are no records in the database, it fails with the same error.
Thoughts?