Conditional Div Display in Custom ComboBox - if record = x

  1. #1

    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]
  2. #2

    RE: Conditional Div Display in Custom ComboBox - if record = x

    got it with

    
    
    
    <div class='{[values.totalCharge == 0 ? "x-hidden" : ""]}'>Total Charge: {totalCharge:usMoney}

Similar Threads

  1. [CLOSED] Question about custom display by condition.
    By rosua in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 30, 2012, 10:36 AM
  2. Replies: 0
    Last Post: Oct 24, 2011, 4:26 PM
  3. Conditional data display
    By huzzy143 in forum 1.x Help
    Replies: 10
    Last Post: Aug 26, 2011, 3:14 PM
  4. [CLOSED] Custom control : Problem of display.
    By ddslogistics in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 14, 2010, 5:40 PM
  5. Conditional display of menu
    By olakara in forum 1.x Help
    Replies: 2
    Last Post: Apr 15, 2010, 3:23 AM

Posting Permissions