Apr 30, 2010, 12:11 PM
Conditional Div Display in Custom ComboBox - if record = x
Using the custom combobox sampel - if there a way to toggle the visibility of the {nick:ellipsis(8)}, {price:usMoney} line - if Price = 0
/code]
<ext:ComboBox
ID="ComboBox1"
runat="server"
StoreID="Store1"
Width="250"
Editable="false"
DisplayField="state"
ValueField="abbr"
TypeAhead="true"
Mode="Local"
ForceSelection="true"
TriggerAction="All"
EmptyText="Select a state..."
ItemSelector="div.list-item"
SelectOnFocus="true">
<Template runat="server">
<Html>
<tpl for=".">
<div class="list-item">
<h3>{state}</h3>
{nick:ellipsis(8)}, {price:usMoney}
</tpl>
</Html>
</Template>
</ext:ComboBox>
[CODE]
/code]
<ext:ComboBox
ID="ComboBox1"
runat="server"
StoreID="Store1"
Width="250"
Editable="false"
DisplayField="state"
ValueField="abbr"
TypeAhead="true"
Mode="Local"
ForceSelection="true"
TriggerAction="All"
EmptyText="Select a state..."
ItemSelector="div.list-item"
SelectOnFocus="true">
<Template runat="server">
<Html>
<tpl for=".">
<div class="list-item">
<h3>{state}</h3>
{nick:ellipsis(8)}, {price:usMoney}
</tpl>
</Html>
</Template>
</ext:ComboBox>
[CODE]