Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
iggrid error in IE8 with knockout
posted

Anyone seen this error when using knockout with the iggrid?  It only happens in IE8 with a knockout bound grid.  Knockout works without the grid, and in anything above IE 8.   I'll try to get an example that shows it soon.

 Unable to get property 'group' of undefined or null reference

File: knockout-3.1.0.js, Line: 60, Column: 379

Parents
  • 10685
    Offline posted

    Hello, 

    On top of my head, I suggest this is because you are executing your code before the page is finished loading.  Either move your script include/script block to the end of the doc before the closing body tag or if you are using jQuery, place your code in a ready function like this. 

    $(function () {

        var vm = new ViewModel( 'Joe', 'Schmoe' );

        ko.applyBindings( vm );

    });

    http://jsfiddle.net/bczengel/27gcs/  

    And yet as your code seems to be working elsewhere but in IE8, I suggest there could be some issue with how IE8 handles self-closing script tags. For example:

    Try turning this.
    <script type="text/javascript" src="~/Scripts/jquery-1.3.2.js" />
    Into this
    <script type="text/javascript" src="~/Scripts/jquery-1.3.2.js"></script>

    Please let me know of this long shot does the work!

     

Reply Children