I use gridview, which dynamically binds data from a data store. I have two text fields for entering data into the grid. On the submit button, click the text field data that I add to my data warehouse (no need to store in the backend). Now I want to update the gridview using the data store.
My code is:
_createEmptyRecord: function () { var emptyrecord = Ext.data.Record.create(["id", "name", "type"]); return new emptyrecord({ formula_id: 1, name: Amit, type: anything }); }, _addValuetogrid: function () { var record = this._createEmptyRecord(); this._store.insert(0, record); }, _refreshgrid: function() { this._grid._addValuetogrid(); },
Now how to update my gridview?
Please help me...
source share