Hi, durlabh , i can do this for 'local' data, but failed to setup "remote" one.
I have setup the key pair of "id" and "value", but it keep showing the 'id' in the grid
do you have any examples for remote mode? Thanks.
Hi, durlabh , i can do this for 'local' data, but failed to setup "remote" one.
I have setup the key pair of "id" and "value", but it keep showing the 'id' in the grid
do you have any examples for remote mode? Thanks.
Hi, team, i have resolved the remote display issue, below is the code, fyi.
Define a ext.data.store and load data from a proxy first.
then add the rederer below:
renderer:function(value)
{
var index = listStore.find("ID",value);
var typeName = listStore.getAt(index).get("Name");
return typeName;
},
You might be interested in looking at the following thread also:
http://extjs.com/forum/showthread.php?t=37781&page=2
I have problem with durlabh code - mode:remote, and if i do search in combo and later do
all values previously asigned with displayField:'label' changed to valueField :'id'. That's because in store after query is only searched label & id - and than i do "refresh" store have no items (label) for assign.Code:grid.getView().refresh();
Any solution for this?
if anyone need this comborenderer for extjs 3
change..
toCode:var field = combo.editor.field;
Code:if(combo.editor) var field = combo.editor.field; else var field = combo;
I've been using a variation of this renderer for a while. Is it correct to assume that we still need to us this in Ext JS version 3?
And has anyone else noticed some odd behavior if you type in a value in the combo rather than select a value with the mouse? If you start typing something, it'll show matches and look like it's going to autofill, but if you hit Tab it'll just blank out the field and not save your new value. The standard examples of the combo in the grid field don't behave this way, so I assume it's something to do with the custom renderer but I haven't been able to solve it. It makes it impossible to enter data exclusively with the keyboard... you have to use the mouse to pick things from the combo.
As mentioned in earlier post, check this out: http://www.sencha.com/forum/showthre...131#post188131