[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>
    Vladimir Shcheglov
    Sr. Developer
  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
    Vladimir Shcheglov
    Sr. Developer

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 19, 2012, 12:10 AM
  2. Replies: 4
    Last Post: Jun 11, 2012, 5: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, 2:12 PM
  4. Not working: filter search, drop-down list
    By andersgunnare in forum 1.x Help
    Replies: 4
    Last Post: Jun 07, 2011, 7: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, 3:50 PM

Posting Permissions