View Full Version : store.getModifiedRecords is not a function

31 May 2012, 12:54 PM
Hi all i am try to edit and add record to my grid with extjs4 (MVC). I have this error
store.getModifiedRecords is not a function

var modified = store.getModifiedRecords();

This part of my code:
onButtonClick: function(button, e, options) {
var gridd = Ext.getCmp('p');
var store = gridd.getStore();
var modified = store.getModifiedRecords();


Tim Toady
31 May 2012, 1:49 PM
The variable "store" must not be a store (or it was altered in some way which is unlikely), otherwise that function would be available to you. I would console.log store and make sure it is what you think it is.