Does anyone have any experience integrating Infragistics Ingite UI controls (specifically the igGrid) into a Hot Towel/Durandal SPA application?
I've integrated this ig sample in a basic Hot Towel application using the Knockout extensions:
http://es.infragistics.com/products/jquery/sample/grid/grid-knockoutjs-integration
It works with a simple binding, such as:
View:
<table id="grid" data-bind="igGrid: { dataSource: gridData, autoGenerateColumns: false, columns: [ { headerText: 'Product Name', key: 'Name', dataType: 'string' } ]}"> </table>
VM:
define(['services/logger'], function (logger) { var vm = { activate: activate, title: 'Details View', gridData: adventureWorks // Points to ig's JSON sample data }; return vm; //#region Internal Methods function activate() { return true; } //#endregion });
This works fine and renders the grid. However, I get an error as soon as I add any features into the binding, eg:
<table id="Table1" data-bind="igGrid: { dataSource: gridData, autoGenerateColumns: false, features: [ { name: 'Sorting', type: 'local' } ], columns: [ { headerText: 'Product Name', key: 'Name', dataType: 'string' } ]}"> </table>
The error is "["Cannot call method '_injectGrid' of undefined", "views/details", Object]".
I'm using the jQuery.Migrate library (as ig still references 1.7 and Durandal wants 1.9), and have this to load the dependent ig scripts:
$.ig.loader({ scriptPath: "../App/Infragistics/js/", cssPath: "../../Content/", resources: "igGrid.*,extensions/infragistics.datasource.knockoutjs.js,extensions/infragistics.ui.grid.knockout-extensions.js" });
Incidentally I have tried using the 'traditional' jQuery (ie non-KO) API for creating the grid and I get even more problems!
Sample app attached (as link). Any help greatly appreciated.
Hello ahunot,
Thank you for the sample.
Our Ignite UI 2013 supports jQuery 1.9. It may be best if Durandal and our igGrid reference the same jQuery version.
Please let me know how this works out.
If you have any questions, please let me know as well.
Looking forward to hearing from you
Thank you for your response.
I was under the impression that the latest version was 2012.2 - as per this link:
http://es.infragistics.com/products/jquery/downloads
Is it possible to download 2013? If so is this a stable release?