1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default How to display a hierarchy in a combo box?

    How to display a hierarchy in a combo box?


    Hello,

    I'd like to display in my combobox this :


    Code:
    LEVEL 1
        LEVEL 1.1
        LEVEL 1.2
            LEVEL 1.2.1
        LEVEL 1.3
    LEVEL 2
        LEVEL 2.1
    and so on...

    I've tried to do it by inserting   in the name to display. It works when I first select the combo but when I select a value, it displays: &nbp;LEVEL 1.1

    Is there any option to configure this mechanism?

    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Jun 2013
    Posts
    1
    Vote Rating
    0
    fathani is on a distinguished road

      0  

    Default hierarchy in combobox

    hierarchy in combobox


    did you got this ? if yes then please let me noe how did you managed to do that

  3. #3
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default


    I did a recursive function and added '---' each time I went down on a level when I created the json.

Similar Threads

  1. combo box value/display field?
    By mayurid in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 23 Aug 2010, 3:59 AM
  2. Help with Combo Box setting by value, not by display...
    By zsakk in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 8 Dec 2008, 7:06 AM
  3. display problem in combo box
    By Rose in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 14 Apr 2008, 5:32 AM
  4. Combo Box Display problem in IE7
    By msuresh in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 29 Jan 2008, 2:04 AM

Thread Participants: 1