Set ImageURL

  1. #1

    Set ImageURL

    Hi,
    The ComboBox is linked to StoreIcon containing the Name and URL of the icon. By selecting the name in the ComboBox I want to show the icon on the ImageButton. Is it possible?
    
        <ext:Store runat="server" ID="StoreIcon" AutoLoad="true">
            <Reader>
                <ext:JsonReader>
                    <Fields>
                        <ext:RecordField Name="name" />                    
                        <ext:RecordField Name="url" />   
                    </Fields>
                </ext:JsonReader>
            </Reader>
        </ext:Store> 
    
     <ext:MultiField runat="server">
                        <Fields>
                             <ext:ComboBox  ID="cbxIcone"                      runat="server"                                                                                                                                
                               TypeAhead="true" 
                               Mode="Local"
                               ForceSelection="true" 
                               Editable="false"
                               TriggerAction="All" 
                               FieldLabel="Icone"
                               AllowBlank="false"                                 
                               StoreID="StoreIcon" 
                               ValueField="name"                                                             
                               DisplayField="name"
                               Width="200"                           
                               >  
                               <SelectedItem Value="Application" />     
    
                               <Listeners>
                                    <Select Handler="#{ImageButton1}.?????????????" />
                               </Listeners>           
                                                                                                            
                            </ext:ComboBox> 
    
                            <ext:ImageButton ID="ImageButton1" runat="server" ImageUrl="/icons/application-png/coolite.axd" >
                            </ext:ImageButton>
                        </Fields>
                    </ext:MultiField>
    Maia
    Coolite 0.8.1



  2. #2

    RE: Set ImageURL

    Hi!

    I configured the of ImageURL. What the function does a refresh with the new URL?
    
      <Listeners>
    
          <Select
    Handler="#{ImageButton1}.ImageUrl=#{cbxIcone}.store.getAt(#{cbxIcone}.getSelectedIndex()).get('url');#{ImageButton1}.?????();"
    />
    
      </Listeners>
    Maia.

Similar Threads

  1. Replies: 1
    Last Post: Feb 21, 2012, 8:41 AM
  2. [CLOSED] ImageUrl Problem in MVC
    By webppl in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 29, 2011, 1:31 AM
  3. [CLOSED] [1.0] ImageUrl in ext:Image
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 22, 2010, 6:42 PM
  4. Problem with ImageUrl in server-side
    By hbbazan in forum 1.x Help
    Replies: 6
    Last Post: Feb 04, 2010, 9:35 AM
  5. [CLOSED] Get ImageUrl of ext:image with JavaScript
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 23, 2009, 12:19 PM

Posting Permissions