super.editRecord(record);
Record[] bundleRecords = record.getAttributeAsRecordArray(BundleGroupsDataSource.FIELD_BUNDLES);
ListGridRecord[] bundleListGridRecords = toListGridRecordArray(bundleRecords);
this.bundleSelector = new BundleSelector(bundleListGridRecords, canAssign, canUnassign);
this.bundleSelector.addAssignedItemsChangedHandler(new AssignedItemsChangedHandler() {
public void onSelectionChanged(AssignedItemsChangedEvent event) {
BundleGroupEditView.this.onItemChanged();
}
});