Just create a new record that returns an empty record with all the fields of the model.
//this one is for the grid model var blank_record = Ext.create(grid.store.model);
Create an object to set new values ββin the fields
var new_record = { 'field1':'value1', 'field2':'value2', 'field3':'value3' };
then set the values ββof the objects to an empty record
blank_record.set(new_record);
Next, if you want to add a newly created record to the grid
grid.store.add(blank_record);
Hope this helps
Nishant bajracharya
source share