-
29 Aug 2010 1:32 AM #11
what is posting? You using a writable Store?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
29 Aug 2010 5:49 AM #12
javascript is case sensitive. so you should use "valueField" not "valuefield" at your config
-
29 Aug 2010 7:46 AM #13
Yes, you are right. I fixed this and now is working thanks!
-
30 Sep 2010 6:58 AM #14
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?
-
30 Sep 2010 7:28 AM #15
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.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
30 Sep 2010 10:41 AM #16
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' });
Similar Threads
-
Livegrid render problems
By ae.intern in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 7 Jun 2010, 1:26 AM -
how to use combox as textfield and combox in grid editor
By genTaliaru in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 22 May 2009, 4:55 AM -
combox render problem in toolbar,Pls help me!!!!
By dgms in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 21 Jul 2008, 6:00 AM -
using a colon in a grid id causes render problems
By ismoore in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 29 Apr 2007, 1:22 AM -
Upgrade Grid to Ext1.0 from 0.33 - render problems
By ismoore in forum Ext 1.x: Help & DiscussionReplies: 11Last Post: 27 Apr 2007, 3:13 AM


Reply With Quote