[CLOSED] [1.0] Custom Drop Down List Example

  1. #1

    [CLOSED] [1.0] Custom Drop Down List Example

    Hi,

    I can't get the drop down list example or any of my implementations to work now that the Template markup has been changed from

    <Template runat="server">
       <tpl for=".">
    to

    <Template runat="server">
       <Html>
    /Form/ComboBox/Custom_Drop_Down_List/

    The drop down list is always empty. Has the format for binding also changed?

    Ben

  2. #2

    RE: [CLOSED] [1.0] Custom Drop Down List Example

    Hi,


    'tpl' tag is still required (please example from EE which you methioned, it contains tpl tag)

    <Template runat="server">
                <Html>
                    <tpl for=".">
                            <div class="list-item">
                                 <h3>{state}</h3>
                                 {nick:ellipsis(8)}, {price:usMoney}
                            
    
                        </tpl>
                </Html>
            </Template>
  3. #3

    RE: [CLOSED] [1.0] Custom Drop Down List Example

    Hi Vladimir,

    Thanks that fixes the problem. I agree the example on the v1 example site does use <tpl> but it doesn't include the <html> tag which mean it doesn't build with the latest 1.0 version.

    <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"
        Select&#111;nfocus="true">
        <Template runat="server">
            <tpl for=".">
                <div class="list-item">
                     <h3>{state}</h3>
                     {nick:ellipsis(8)}, {price:usMoney}
                
    
            </tpl>
        </Template>    
    </ext:ComboBox>
  4. #4

    RE: [CLOSED] [1.0] Custom Drop Down List Example

    Hi,

    Just online example is out dated. Example in the SVN contains Html tags

Similar Threads

  1. How to use drop down list in ASP.Net Web Application
    By ali_raza159 in forum 2.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 11:10 PM
  2. Replies: 4
    Last Post: Jun 11, 2012, 4:27 PM
  3. [CLOSED] Format Date in Custom Drop Down List
    By mbb in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 29, 2011, 1:12 PM
  4. Not working: filter search, drop-down list
    By andersgunnare in forum 1.x Help
    Replies: 4
    Last Post: Jun 07, 2011, 6:45 PM
  5. [CLOSED] Drop down list under a ComboBox is not the correct size...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2009, 2:50 PM

Posting Permissions