I have a form with a select editor type which uses a collection, but I have not found any way of setting the selected option after the data is loaded. I have not found anything in the documentation or any examples online.
...
country: {
title: 'Country',
type: 'Select',
options: function (callback) {
var result = [];
var states = new Countries();
states.fetch({
success: function (collection) {
_.each(collection.models, function (model) {
result.push({ 'val': model.get('id'), 'label': model.get('name') });
});
callback(result);
}
});
},
validators: ['required']
},
...
you can use