1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    South of France
    Posts
    6
    Vote Rating
    0
    ultradiv is on a distinguished road

      0  

    Default NestedList loading treeGrid JSON data

    NestedList loading treeGrid JSON data


    Hi, I'm trying to use the nestedList project example issued as an example by bharatn here (which I have working) .
    If you look at the JSON file in that example you will notice that it does not conform to valid JSON syntax (according to http://jsonformatter.curiousconcept.com/) but it works
    I am trying to exchange my JSON data to operate within the same simple structure as the example while my JSON does conform, it does not work .

    I attach my project including both JSON files (as .txt)
    Can someone please help me get this very simple example working?
    Cheers
    Attached Files

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    South of France
    Posts
    6
    Vote Rating
    0
    ultradiv is on a distinguished road

      0  

    Default Found the solution

    Found the solution


    I had the structure wrong for the nestedList it should have been
    Code:
    {
       "items":[
          {
             "item":"Aquitaine",
             "items":[
                {
                   "item":"Gironde",
                   "leaf":true
                },
                {
                   "item":"Pyr\u00E9n\u00E9es-Atlantiques",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Auvergne",
             "items":[
                {
                   "item":"Puy-de-D\u00F4me",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Basse-Normandie",
             "items":[
                {
                   "item":"Calvados",
                   "leaf":true
                },
                {
                   "item":"Manche",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Bourgogne",
             "items":[
                {
                   "item":"C\u00F4te-d'Or",
                   "leaf":true
                },
                {
                   "item":"Ni\u00E8vre",
                   "leaf":true
                },
                {
                   "item":"Sa\u00F4ne-et-Loire",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Bretagne",
             "items":[
                {
                   "item":"Ille-et-Vilaine",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Centre",
             "items":[
                {
                   "item":"Indre-et-Loire",
                   "leaf":true
                },
                {
                   "item":"Loiret",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Champagne-Ardennes",
             "items":[
                {
                   "item":"Aube",
                   "leaf":true
                },
                {
                   "item":"Marne",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Haute-Normandie",
             "items":[
                {
                   "item":"Seine-Maritime",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Ile-de-France",
             "items":[
                {
                   "item":"Essonne",
                   "leaf":true
                },
                {
                   "item":"Hauts-de-Seine",
                   "leaf":true
                },
                {
                   "item":"Paris",
                   "leaf":true
                },
                {
                   "item":"Seine-et-Marne",
                   "leaf":true
                },
                {
                   "item":"Seine-Saint-Denis",
                   "leaf":true
                },
                {
                   "item":"Val d'Oise",
                   "leaf":true
                },
                {
                   "item":"Val-de-Marne",
                   "leaf":true
                },
                {
                   "item":"Yvelines",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Languedoc Roussillon",
             "items":[
                {
                   "item":"Aude",
                   "leaf":true
                },
                {
                   "item":"Gard",
                   "leaf":true
                },
                {
                   "item":"H\u00E9rault",
                   "leaf":true
                },
                {
                   "item":"Pyr\u00E9n\u00E9es-Orientales",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Limousin",
             "items":[
                {
                   "item":"Corr\u00E8ze",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Lorraine",
             "items":[
                {
                   "item":"Meurthe-et-Moselle",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Midi-Pyr\u00E9n\u00E9es",
             "items":[
                {
                   "item":"Haute-Garonne",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Nord-Pas-de-Calais",
             "items":[
                {
                   "item":"Nord",
                   "leaf":true
                },
                {
                   "item":"Pas-de-Calais",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Outre-mer",
             "items":[
                {
                   "item":"Martinique",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Pays de la Loire",
             "items":[
                {
                   "item":"Loire-Atlantique",
                   "leaf":true
                },
                {
                   "item":"Maine-et-Loire",
                   "leaf":true
                },
                {
                   "item":"Vend\u00E9e",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Picardie",
             "items":[
                {
                   "item":"Aisne",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Poitou-Charentes",
             "items":[
                {
                   "item":"Charente-Maritime",
                   "leaf":true
                },
                {
                   "item":"Vienne",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Provence Alpes C\u00F4te d'Azur",
             "items":[
                {
                   "item":"Alpes Maritimes",
                   "leaf":true
                },
                {
                   "item":"Bouches-du-Rh\u00F4ne Est",
                   "leaf":true
                },
                {
                   "item":"Bouches-du-Rh\u00F4ne Ouest",
                   "leaf":true
                },
                {
                   "item":"Marseille",
                   "leaf":true
                },
                {
                   "item":"Var",
                   "leaf":true
                },
                {
                   "item":"Vaucluse",
                   "leaf":true
                }
             ]
          },
          {
             "item":"Rh\u00F4ne-Alpes",
             "items":[
                {
                   "item":"Ain",
                   "leaf":true
                },
                {
                   "item":"Ard\u00E8che",
                   "leaf":true
                },
                {
                   "item":"Dr\u00F4me",
                   "leaf":true
                },
                {
                   "item":"Haute-Savoie",
                   "leaf":true
                },
                {
                   "item":"Is\u00E8re",
                   "leaf":true
                },
                {
                   "item":"Loire",
                   "leaf":true
                },
                {
                   "item":"Rh\u00F4ne",
                   "leaf":true
                },
                {
                   "item":"Savoie",
                   "leaf":true
                }
             ]
          }
       ]
    }

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi