using vs2010, c#, MVC3, and Razor;
I have an igCombo that pulls data by specifying the datasource. If there is data, all works as intended. However, if the result is empty, there is an error the first time you try to drop down the list: "Invalid Argument"
The view code looks like this:
@(Html.Infragistics().Combo() .ID("igComboID") .TextKey("Name") .Width("200") .ValueKey("TableID") .AllowCustomValue(false) .EnableClearButton(false) .Mode(Infragistics.Web.Mvc.ComboMode.DropDown) .MultiSelection(Infragistics.Web.Mvc.ComboMultiSelection.Off) .DataSourceUrl(Url.Action("GetMyData")) .DataBind() .Render())
The Controller code looks like this: [ComboDataSourceAction]public ActionResult GetMyData(){ var myData = from d in db.GetMyData where 1 == 2 select d; return View(myData.AsQueryable());}
The 1 == 2 ensures an empty data set.
Thanks,Tony
Hello Anthony,
I tried to reproduce your problem, but with no success.
Can you provide me with more info about your test scenario like:
Best Regards,
Martin Pavlov
Infragistics, Inc.
Hello Martin,
Thanks for getting back with me.
I am using NA 2011.2 with the SR. The DLL version shows: 3.11.2.2045
I did sync all JS files to be what was provided/updated after applying the SR.
The invalid argument is raised in the client when attempting to drop down the empty combo box, but only the first time. The error message points to line 18, char 20286 of http://localhost.:16759/Scripts/jquery-1.6.2.min.js
So, is there an issue with 1.6.2 of jquery with the new release?
Hello Tony,
Which browser and version do you use in order to replicate the behavior?
I tested with IE9 and it works like a charm with the scripts version provided by Martin.
Using IE9 in compatible mode I was able to reproduce the behavior.
I guess you are using earlier version of Internet Explorer too.
Hope hearing from you.
I'm using IE8.
We have to be able to support IE7+ so I'll have to come up with a workaround for the time being.
I have the same scripts mentioned above, except the jquery UI. It is:
jquery-ui-1.8.14.min.js
Good thinking on the browser version.
Hi all,
Wondering if this has been resolved or perhaps a workaround found?
I'm having a similar issue on IE8 (http://forums.infragistics.com/forums/p/68990/349178.aspx#349178)
In my case, though, I get the "undefined" error on page load which comes from the igCombo script.
Cheers,
Kyryll