This is a migrated thread and some comments may be shown as answers.

TypeError : g is undefined at kendo.web.min.js:8

2 Answers 350 Views
Grid
This is a migrated thread and some comments may be shown as answers.
eeee
Top achievements
Rank 1
eeee asked on 31 Aug 2012, 09:21 PM
Update & Destroy Button is Not Working in Grid.
When I Try :
------------------------------------------------------------
update: {
        url: function (employee) {
            return "api/employees/" + employee.Id
        },
        type: "POST"
    },
destroy: {
        url: function (employee) {
            return "api/employees/" + employee.Id
        },
        type: "DELETE"
    }
-------------------------------------------------
(on FIREFOX )  I got This ERROR >>>   TypeError : g is undefined at kendo.web.min.js : 8

(on Chrome)  I got This ERROR >>>
  1. Uncaught TypeError: Cannot read property 'data' of undefined kendo.web.min.js:8
    1. p.extend.setupkendo.web.min.js:8
    2. p.extend.createkendo.web.min.js:8
    3. o.extend._promisekendo.web.min.js:8
    4. jQuery.extend.Deferredjquery-1.8.0.js:1180
    5. o.extend._promisekendo.web.min.js:8
    6. o.extend._sendkendo.web.min.js:8
    7. o.extend.synckendo.web.min.js:8
    8. h.extend.removeRowkendo.web.min.js:8
    9. h.extend._editablekendo.web.min.js:8
    10. jQuery.event.dispatchjquery-1.8.0.js:3061
    11. jQuery.event.add.elemData.handle.eventHandlejquery-1.8.0.js:2677

What is the Solution? Help Me Please...

2 Answers, 1 is accepted

Sort by
0
Laurent
Top achievements
Rank 1
answered on 10 Sep 2012, 09:59 AM
Hi,

I have the same problem using a kendo grid with "batch editing".

My code is based on the demos code for batch editing in a kendo grid.

The grid is loaded perfectly with empty values in one of the column.
The grid is composed by 3 columns : ID (not visible), Name (not editable), Name(editable)...
I fill the different empty fields and when i click on Save Changes, i get the following error in Firefox (firedebug) :

TypeError: g is undefined
http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js
Line 8

Can you please help?

Regards.
0
Adrian
Top achievements
Rank 1
answered on 17 Sep 2012, 09:58 PM
I get the same error, and I believe it may be related to this error in IE: http://www.kendoui.com/forums/ui/grid/how-to-update-grid-widget-i-get-an-error.aspx#2293605

Has anyone figured out the cause, or a solution?

EDIT: I updated the other thread as well. Basically, I added an ID field to the data, told the dataSource it was a number type field, and set it as the id for the schema. Problem went away once I did that.
Tags
Grid
Asked by
eeee
Top achievements
Rank 1
Answers by
Laurent
Top achievements
Rank 1
Adrian
Top achievements
Rank 1
Share this question
or