[CLOSED] get the value of the selected item from a combobox via js

  1. #1

    [CLOSED] get the value of the selected item from a combobox via js

    I Have a form with some controls, one of the controls has a trigger and a listener.

    This listener loads an iframe window but I need to pass a url param in the url. It must be the value of the dynamically selected item from the combobox. How can I accomplish this?

    <ext:ComboBox ID="ddlPrices" runat="server" FieldLabel="Prijzenschema" Editable="true" TypeAhead="true"  ForceSelection="true">
           <Triggers>
                   <ext:FieldTrigger Icon="SimpleWrench" />
           </Triggers>
           <Listeners>
                  <TriggerClick Handler="createIframeWindow('Alter prices', 340, 'WizardPricing.aspx?id=??);" />
            </Listeners>
    </ext:ComboBox>
  2. #2
    Hi,

    Just use getValue method of the ComboBox
    ddlPrices.getValue()
  3. #3
    Super, I needed the js variant.


     <TriggerClick Handler="createIframeWindow('Alter prices', 340, 'WizardPricing.aspx?id=' + #{ddlPrices}.getValue() );" />

    Anyway, it's solved. Thanks again!

Similar Threads

  1. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM
  2. [CLOSED] ComboBox set selected item value
    By pumpkin in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 27, 2009, 7:26 AM
  3. Get Combobox Selected item
    By yarlenvas in forum 1.x Help
    Replies: 3
    Last Post: Mar 08, 2009, 2:04 PM
  4. Get ComboBox Selected Item
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 18, 2008, 9:50 AM
  5. [FIXED] [V0.6] ComboBox and Selected Item
    By amitpareek in forum Bugs
    Replies: 2
    Last Post: Sep 16, 2008, 5:03 PM

Tags for this Thread

Posting Permissions