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>
Definitely something up with the trial. When I downloaded the CDN version of the knockout-extensions.js I was able to run my project without errors. Otherwise the the console kept complaining "object not a function" with the download trial version of the library.
Just FYI hope that helps others.
You can download the correct version here until the guys get it sorted out.
http://origin1tech.wordpress.com/2012/07/30/knockoutjs-and-ifragistics-jquery-iggrid/
The sample that was posted did work for me...it does use CDN's for the Infragistics scripts....sould be interesting to see if it still worked with the scripts referenced locally. I am good for now though....thanks for all our help.
Hello,
I am just to see if you if you need any further assistance with this matter.
Martin,
Thanks for the update. I really like what the Knockout integration gives us and I'm glad to see it's not a huge drain on performance.
-Shane
Hi Shane,
I revised my sample and there are two things which make it slow.
First I use Infragistics CDN (because sample can be run out of the box). I would say that the CDN is not very fast (at least from my location).
The second reason is that in the loader I enabled all the igGrid features.
After I changed the loader to use local files and enabled only igGridUpdating everything run for about 800ms and the original sample run for about 2 seconds (see attached screenshot).
Using KnockoutJS integration adds some overhead to the grid, but after analyzing it with Chrome Developer Tools Timeline I consider it as very small.
Hope this helps,
Martin Pavlov
Infragistics, Inc.