PDA

View Full Version : [CLOSED] ComboBox .getText() doesn't work in version 2, was is the equivalent?



rthiney
Aug 24, 2012, 8:13 PM
What is the equivalant code to .getText() for a selected value of a combo box in version 2. This no longer works..


<ext:ComboBox ID="ComboBox1" runat="server" StoreID="storeRoleList" Editable="true"DisplayField="ROLE_DESC" ValueField="ROLE_ID" TypeAhead="true" Mode="Local" ForceSelection="true"
EmptyText="Select a position..." Resizable="true" FieldLabel="User Position" Selectonfocus="true"
TriggerAction="All" Width="250">
<AjaxEvents>
<Select OnEvent="ComboBox1_Selected" ViewStateMode="Include">
<ExtraParams>
<ext:Parameter Name="Position" Value="#{ComboBox1}.getText()" Mode="Raw" />
</ExtraParams>

</Select>
</AjaxEvents>
</ext:ComboBox>

Vladimir
Aug 24, 2012, 9:55 PM
Please use 'getRawValue' method