Combobox DisplayField 2 fields???

  1. #1

    Combobox DisplayField 2 fields???

    <ext:Store ID="StoreMotori" runat="server" DataSourceID="ObjectDataSourceMotori">
    <Reader>
    <ext:JsonReader IDProperty="ID">
    <Fields>
    <ext:RecordField Name="Brand" />
    <ext:RecordField Name="Model" />
    </Fields>
    </ext:JsonReader>
    </Reader>
    </ext:Store>







    <ext:ComboBox
    ID="ComboBoxMotore1"
    StoreID="StoreMotori"
    ValueField="ID"
    DisplayField=""Brand + "Model"
    runat="server"
    AllowBlank = "false"
    EnableKeyEvents="true"
    Width="220">
    </ext:ComboBox>
  2. #2

    Concat in the data source

    Dear Sir


    If you want to view the 2 fields as one item in the Combo Box you should add new field to the data source by concatenating the 2 fields.
    that will help you, and as I think you can't do that by add the name of the tow columns cus there will not be an identification for the the combo item ...

    Regards
  3. #3
    i use valuefield for identification.
    I can not concatenate before databound?
  4. #4
    Hi!
    See the link below:
    https://examples1.ext.net/#/Form/ComboBox/Two_Columns/

    Maia.
    Coolite 1.0

Similar Threads

  1. [CLOSED] ComboBox DisplayField with HTML?
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 24, 2012, 8:31 PM
  2. Get value of DisplayField of Combobox
    By littletran in forum 1.x Help
    Replies: 0
    Last Post: May 17, 2012, 7:32 AM
  3. Replies: 2
    Last Post: Mar 03, 2012, 3:33 PM
  4. Replies: 2
    Last Post: Jul 28, 2010, 6:50 AM
  5. DisplayField of the ComboBox
    By Maia in forum 1.x Help
    Replies: 2
    Last Post: Jun 04, 2009, 10:46 AM

Posting Permissions