View Full Version : addSorted() to a grouping store problem

18 Nov 2009, 1:32 AM
Most of the time this works fine, but sometimes (10-15% of the time) it creates a new group with the same name as the group I am adding the record to (so now I have two group with the same name), instead of just adding the record to the existing group.

var defaultData = {
group: myGroupVar, // contains the name of an existing group
value: 'default value'
store = grid.getStore();
var p = new store.recordType(defaultData); // create new record

rowOfDefaultData = store.indexOf(p);
grid.startEditing(rowOfDefaultData, 1);Any ideas?