[CLOSED] ext:ComboBox ListItem with html image tag

  1. #1

    [CLOSED] ext:ComboBox ListItem with html image tag

    Hi!

    I inserted in ext:listitem of ext:combobox a html image tag, as follow bellow:
    The images are loaded in listitems... but when I select the item, in text of ext:combox appears the tag instead of image.
    Click image for larger version. 

Name:	combox 1.png 
Views:	97 
Size:	7.6 KB 
ID:	4049

    Click image for larger version. 

Name:	combox 2.png 
Views:	70 
Size:	2.0 KB 
ID:	4050

    <ext:ComboBox runat="server" ID="cmbPrioridade" FieldLabel="Prioridade" Editable="false" X="5" Y="290" Width="180">
       <Items>
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/urgente.png'/> Urgente" Value="0" />
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/muito alta.png'/> Muito alta" Value="1" />
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/alta.png'/> Alta" Value="2" />
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/normal.png'/> Normal" Value="3" />
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/baixa.png'/> Baixa" Value="4" />
           <ext:ListItem Text="<img src='/resources/images/toolbar/16x16/tarefas/prioridade/muito baixa.png'/> Muito baixa" Value="6" />
           <ext:ListItem Text="(Nenhum)" Value="-1" />
       </Items>
       <SelectedItems>
          <ext:ListItem Value="-1" />
       </SelectedItems>
    </ext:ComboBox>
    Last edited by Daniil; Apr 02, 2012 at 2:03 PM. Reason: [CLOSED]
  2. #2
    Input element cannot show html
    Please investigate the following sample
    http://examples2.ext.net/#/Form/ComboBox/IconCombo/
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Ok, thanks Vladimir.

Similar Threads

  1. [CLOSED] ComboBox empty ListItem
    By methode in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 18, 2013, 4:01 AM
  2. [CLOSED] Adding extra listitem at top combobox
    By CarWise in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 29, 2012, 10:57 AM
  3. How to allow html control inside a listitem?
    By masudcseku in forum 1.x Help
    Replies: 1
    Last Post: Sep 16, 2010, 9:26 PM
  4. Replies: 0
    Last Post: May 30, 2010, 10:24 PM
  5. ComboBox ListItem Selected
    By Timothy in forum Bugs
    Replies: 1
    Last Post: Aug 22, 2008, 2:51 PM

Posting Permissions