Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
    dombol is on a distinguished road

      0  

    Default Unanswered: Treegrid with complex JSON.

    Unanswered: Treegrid with complex JSON.


    Hello everyone.
    I am trying to use a treegrid component to display a JSON.
    The main problem I have is that the JSON doenst follow the usual hierarchy with "children" for example.
    I have to display some information in the treegrid manner, but my JSON is somewhat complex, like, the "children" info is not on a children tag.

    So, for example, if my JSON was like
    Code:
    {
       a : [{
            b: {name : ABC},
            c: [{
                d: {desc:AAA},
                d: {info:BBB},
                d: {smtelse:CCC},
            }]
       }]
    }
    And I need to display them like:

    ABC
    >AAA
    >BBB
    >CCC

    Can I do that without the "children" hierarchy?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    307
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    It isn't impossible but it would be tricky. You might be able to do it by extending the Json reader and overriding the method getResponseData. I think if you use that to munge the response data from the current format to the expected format it should work.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    5
    Vote Rating
    0
    dombol is on a distinguished road

      0  

    Default


    We went for the "quicker" way. I just render a full Ext file the way I want, with inline stores and etc.

    In the future we gonna need to move to the JSON way and create Rest interfaces...

Thread Participants: 1

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..."