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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar