what is posting? You using a writable Store?
Printable View
what is posting? You using a writable Store?
javascript is case sensitive. so you should use "valueField" not "valuefield" at your config
Yes, you are right. I fixed this and now is working thanks!
Another question? This combo is being rendered at a grid. When I select the option and do a 'tab' to another field on the grid the value information that the grid displays is the id value instead of the text value. How to fix this? I researched at the internet and add the hiddenName at combo could be fix this, but it works only on forms not in grids. Do you know any workaround to deal with this?
Thanks so much?
The ID is what you should be storing in the Store for that Grid.
And then you should be using a column renderer to show any description.
Did you mean, to do this?
And pass it to:Code:var customerStore = new Ext.data.Store({
id : 'customers',<-- Here my ID for the store
proxy: customerProxy,
reader: customerReader,
autoLoad: true
});
About the column render can you show me a small example?Code:var customerCombo = new Ext.form.ComboBox({
store: customerStore,
displayField: 'name',
valuefield: 'pk',
hiddenName: 'customers',<-- The same name for the Store ID
typeAhead: false,
triggerAction: 'all',
editable: false,
anchor: '95%',
allowblank: false,
mode: 'remote'
});