PDA

View Full Version : [CLOSED] ext:ComboBox ListItem with html image tag



supera
Mar 30, 2012, 8:47 PM
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.
4049

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>

Vladimir
Mar 30, 2012, 9:25 PM
Input element cannot show html
Please investigate the following sample
http://examples2.ext.net/#/Form/ComboBox/IconCombo/

supera
Apr 02, 2012, 12:58 PM
Ok, thanks Vladimir.