[CLOSED] [1.0] ComboBox Template

  1. #1

    [CLOSED] [1.0] ComboBox Template

    Upgraded to latest version through SVN.

    The ComboBox isn't rendering data correctly in the Template. The following is what we're doing:

    <ext:Store ID="strCategory" runat="server" OnRefreshData="strCategory_RefreshData">
        <Proxy>
            <ext:PageProxy />
        </Proxy>
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="CategoryCode" />
                    <ext:RecordField Name="CategoryName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    
    <ext:ComboBox ID="cbCategory" runat="server" FieldLabel="Category" StoreID="strCategory" MinChars="3" DisplayField="CategoryName" ValueField="CategoryCode" HideTrigger="true" ItemSelector="div.catSearch-item" AnchorHorizontal="100%">
        <Template runat="server">
            <Html>
                <div class="catSearch-item">
                    {CategoryName} ({CategoryCode})
                
    
            </Html>
        </Template>
    </ext:ComboBox>
    It shows the "Loading..." item, then shows ONE line with "()". When it should show something like "Lumber (LUM388)".

    Thanks.

  2. #2

    RE: [CLOSED] [1.0] ComboBox Template

    Hi,

    You forgot to wrap your Html content by <tpl> tag
    <tpl for=".">
    			    <div class="catSearch-item">
    				    {CategoryName1.Rttywe}
    			    
    
    			</tpl>
  3. #3

    RE: [CLOSED] [1.0] ComboBox Template

    Ops. That fixed it.

Similar Threads

  1. [CLOSED] [1.1] Template Combobox typeahead value select the first row
    By ddslogistics in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Sep 28, 2011, 2:00 PM
  2. [CLOSED] Using custom template in a ComboBox
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2011, 3:06 PM
  3. [CLOSED] Combobox search without using template
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 05, 2010, 3:58 PM
  4. [CLOSED] ComboBox Template for Selected Value
    By Steve in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 22, 2009, 10:34 AM
  5. Replies: 1
    Last Post: Oct 29, 2008, 4:44 AM

Posting Permissions