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>
Sorry about hijacking this thread, but I've been having similar issues so I decided to try this example. I can get my model to work using this code, but it is very slow. Even using the code as is, the grid takes about 2 seconds to render after the first part of the page is rendered. I even changed the infragistics script to load locally. Is the Knockout integration that much slower than a native Infragistics grid? I'm worried that with just 10 rows and 4 columns rendering this slow, how long will it take for 100 rows with 30 cols?
-Shane
Hi,
Unfortunately I was unable to reproduce your problem. Attached you can find my samples for both 12.1 RTM(build 1010) and 12.1 SR(build 2023). Please review them and see if they can help you resolve your problem.
Because KnockoutJS is client side solution I exclude that the reason can be in the MVC 3 framework.
The file infragistics.ui.grid.knockout-extensions.js is where the grid instantiation happens and removing it will not try to create the grid at all. In the infragistics.datasource.knockoutjs.js is located the data source object which is responsible for communication with the KnockoutJS. Both these files play major role in KnockoutJS integration.
Note: Apart from having "Knockout JavaScript library" included in the sample you also need "Knockout Mapping plugin" which you can find in my samples as (knockout-latest.debug.js and knockout.mapping-latest.debug.js respectively).
I suspect that the cause of the problem is somewhere in the view model.
Can you attach the sample which reproduces the problem so I can investigate it?
Hope this helps,
Martin Pavlov
Infragistics, Inc.
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.
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.
I have the same issue. I am evaluating the product and the "official" trial download didn't have this issue (but a few others). So I got the 20121.2023 build patch and although it fixes some other issues, I now have the same issue as this thread refers to.
Johan