I want to use editor inline editing in a MVC 5 project. The script not hitting controller/action

I want to use editor inline editing in a MVC 5 project. The script not hitting controller/action

estrand@fechheimer.comestrand@fechheimer.com Posts: 1Questions: 1Answers: 0

Used generator to build the following script
(function ($) {

        $(document).ready(function () {
            var editor = new $.fn.dataTable.Editor({
                //ajax: {
                //    url: '/SalesGoals/Table',
                //    contentType: "application/json; charset=utf-8"
                //},
                ajax : "/SalesGoals/Table",
                table: '#SalesGoal',
                fields: [
                    {
                        "label": "SalesGroupID:",
                        "name": "salesgroupid"
                    },
                    {
                        "label": "YearNum:",
                        "name": "yearnum"
                    },
                    {
                        "label": "FiscalMonth:",
                        "name": "fiscalmonth"
                    },
                    {
                        "label": "SalesGoal:",
                        "name": "salesgoal"
                    },
                    {
                        "label": "SalesGoalID:",
                        "name": "salesgoalid"
                    }
                ]
            });

            // Activate an inline edit on click of a table cell
            $('#SalesGoal').on('click', 'tbody td:not(:first-child)', function (e) {
                editor.inline(this);
            });

            var table = $('#SalesGoal').DataTable({
                dom: 'Bfrtip',
                //ajax: {
                //    url: '/SalesGoals/Table',
                //    contentType: "application/json; charset=utf-8"
                //},
                ajax: "/SalesGoals/Table",
                columns: [
                    {
                        "data": "salesgroupid"
                    },
                    {
                        "data": "yearnum"
                    },
                    {
                        "data": "fiscalmonth"
                    },
                    {
                        "data": "salesgoal"
                    },
                    {
                        "data": "salesgoalid"
                    }
                ],
                select: true,
                lengthChange: false,
                order: [[0, "asc"], [1, "asc"], [2, "asc"]],
                pageLength: 12,

                buttons: [
                    { extend: 'create', editor: editor },
                    { extend: 'edit', editor: editor },
                    { extend: 'remove', editor: editor }
                ]
            });
        });

    }(jQuery));
This discussion has been closed.