I am using the Jquery grid with knockout and MVC 3 and am getting a "Function Expected" error when the extensions/infragistics.ui.grid.knockout-extensions.js file loads. The error breaks right at this line of script in the file: "ko.bindingHandlers.igCell={init:function(c,e,a,f,b){}..."
I am using igLoader as follows:
<script type="text/javascript" src="@Url.Content("~/scripts/infragistics.loader.js")"></script>
<script type="text/javascript">
$.ig.loader({
scriptPath: "@Url.Content("~/scripts")",
cssPath: "@Url.Content("~/content")",
resources: "igGrid.*,extensions/infragistics.datasource.knockoutjs.js,extensions/infragistics.ui.grid.knockout-extensions.js"
});
</script>
I have copied the GridKnockoutjsBasic.html and GridKnockoutjsBasicController from the Infragistics samples into my app and the Northwind files (db and js) and ran it....the text boxes all fill in with the first row data just like in the grid knockout sample however the grid does not display. I had to remove the "extensions/infragistics.ui.grid.knockout-extensions.js" part from the igLoader:
scriptPath: "/Scripts/",
cssPath: "/Content/",
or else I get the "function expected" error. Not sure if removing this is what causes the grid to not show up but if I leave it in I get the error and if I ignore it, the grid still does not display.
Hello mlacy1358,
Thank you for your patience. I have a few questions concerning this matter. Is the JavaScript file in the location indicated in the loader? Can you please run fiddler alongside your website and see if you get any errors when running?
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Hi,
Yes the scripts exist in the place where I am pointing ( I know because when it breaks it finds the script and the position in the script where it broke). All I have to do is include the infragistics-knockout-extension library for it to break, I don't have to even write any code against it. Use HttpWatch and I do not believe that there were any useful errors.
Hello,
I am working on support case CAS-94369-XDHK84 in order to assist you with this matter. I have udapted support case CAS-94369-XDHK84 with more details. Once resolution reached, I will post it on this forum .
I hope this helps.