Grid k-on-change issue: Uncaught TypeError: i[n].call is not a function

2 posts, 0 answers
  1. Lev
    Lev avatar
    2 posts
    Member since:
    Feb 2016

    Posted 10 Mar 2016 Link to this post

    Hi, i try to use grid in angularjs application.

    I defined angular controller like this:

    function _controller($scope, gridData) {
            var vm = this;
        ... some code ...
            var dataSource = new{
                data: gridData,
                pageSize: 20,

            vm.onChange = function (data, dataItem, columns) {

            vm.gridOptions = {
                columns: gridColumns,
                selectable: "row",
                editable: false,
                pageable: true,
                dataSource: dataSource

            // private functions
            function _handleChange(e) {

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 11 Mar 2016 Link to this post

    Hi Lev,

    I tried different approaches to replicate the issue, but to no avail. Could you please take a look at the following dojo example that works correctly:
    Please ensure that your event handler is defined in the scope and that you reference it correctly within k-on-change.

    Hope this helps.

    Konstantin Dikov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top