PDA

View Full Version : Doubt about find in a record in a comboRenderer



attu
26 Oct 2011, 2:17 AM
Hello!

I'm using the Ext.util.Format.comboRenderer:



Ext.util.Format.comboBoxRenderer : function(combo) { return function(value, cell, record, rowIndex, colIndex, store){
console.log(record.data.esOferta);
var record = combo.findRecord(combo.valueField, value);
console.log(record);
return record ? record.get(combo.displayField) : combo.valueNotFoundText;
};


I'm having some problems trying to find a record because i need to find it by two fields (id and isProyect) and not alwais is id the field i'm looking for.



fields: ['time','id','isProyect','title'],


Do you know how can i find a record by id and isProyect?

Thanks in advance!

attu