PDA

View Full Version : Several ComboBox with one store in PropertyGrid



arta
26 May 2009, 10:04 AM
Hi!

I need several combo with one store in propertygrid.

How to include combo in propertygrid I know:


var comboUsers = new Ext.form.ComboBox({
store: storeUsers,
typeAhead: false,
loadingText: 'loading...',
displayField: 'name',
triggerAction: 'all',
forceSelection: true
})
...

propsGrid = new Ext.grid.PropertyGrid({
customEditors: {
'author' : new Ext.grid.GridEditor(comboUsers)
})
...

var rec = new Ext.grid.PropertyRecord( {name: 'author', value: ''});
propsGrid.store.addSorted(rec);

But what do I need to include same combo at another property (another line) of the propertygrid?
Or I need to create one more combo with same store and one more GridEditor?

For example, I have one table with users, and I need to set two properties with user selection.