jQuery UI Widgets Forums Plugins AngularJS jqx-grid: Cannot read property 'created' of undefined

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • houstoniasian


    I’m using version 3.9.1. I copied and pasted your example and it works fine. But in my project, we follow the View-Controller-Model template so we avoid using $scope.

    .controller(‘SectionController’, SectionController);
    SectionController.$inject = [‘$scope’, ‘sectionModel’];
    function SectionController(scope, sectionModel) {
    var vm = this;
    scope.people = data;

    I replace scope with vm: vm.people = data;

    I still have the table shows up but at there is an error in the debug console: TypeError: Cannot read property ‘created’ of undefined.

    I test a few other examples and it seems like jqx-grid works well with $scope but not vm.

    Any reason why?

    Thank you,


    Peter Stoev

    Hi Tan,

    Please, provide jsfiddle.net sample for your issue.

    Best Regards,
    Peter Stoev

    jQWidgets Team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.