How to get the value of selected displayField in ExtJS Combobox

Argnist picture Argnist · Jan 14, 2013 · Viewed 28.3k times · Source

How to get the value of selected displayField in ExtJS 3.4 ComboBox? getValue() returns valueField, but I need other.

Answer

Vinh Doan picture Vinh Doan · May 1, 2013

combo.getValue() -> the valueField
combo.getRawValue() -> the displayField