1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    13
    Vote Rating
    0
    mailmejanar is on a distinguished road

      0  

    Default Can not able to load json data in Sencha touch 2.1 Accordionlist

    Can not able to load json data in Sencha touch 2.1 Accordionlist


    Hi

    I had tried more time to load the treestore data into the AccordianList from json. I got json data in correct format but accordian is not showing the data. i think the proxy in treestore is not supporting to accordian. Anyway i need to do this. its very urgent for me. Can anyone guide me i give special thanks you for you guys

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,197
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    I'm going to assume that you mean NestedList when you refer to the AccordionList.

    http://docs.sencha.com/touch/2-1/#!/...iew.NestedList

    Have you added a JsonTreeStore? Added a relevant JSON file that you are loading? Bound the NestedList to the tree that you created?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    13
    Vote Rating
    0
    mailmejanar is on a distinguished road

      0  

    Default


    Hi acon

    Nested list is suitable for this i have not problem to use nested list. But my requirement is collapsible list with in the single view and not consider more views like in nested list. Here i took one sample for acordian list but it was not loading the data from json it should be load the data as static. But now my friend premkumar just customize the proxy function and load the data from the json. My problem is solved now. You can got the examble from this post http://www.sencha.com/forum/showthread.php?252752-CollapsibleList-in-Sencha-2.1

    a
    nd customize the proxy functions are OnProxyLoad, OnNodeBeforeExpand. You need to put this code inside the store

    onProxyLoad: function(operation) {
    var me = this,
    records = operation.getRecords(),
    successful = operation.wasSuccessful(),
    node = operation.getNode();


    node.beginEdit();
    node.set('loading', false);
    if (successful) {
    records = me.fillNode(node, records);
    }
    node.endEdit();
    this.updateNode(node);
    me.loading = false;
    me.loaded = true;


    node.fireEvent('load', node, records, successful);
    me.fireEvent('load', this, records, successful, operation);


    //this is a callback that would have been passed to the 'read' function and is optional
    Ext.callback(operation.getCallback(), operation.getScope() || me, [records, operation, successful]);
    },



    onNodeBeforeExpand: function(node, options, e) {

    },

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    13
    Vote Rating
    0
    Nuthan Santharam is on a distinguished road

      0  

    Default Works like a Charm

    Works like a Charm


    Thanks very much!!!

    Code:
    {    "items" : [{
                    "text" : "Default",
                    "items" : [{
                                "text" : "Eat",
                                "leaf" : true
                            }, {
                                "text" : "Sleep",
                                "leaf" : true
                            }, {
                                "text" : "Drinking",
                                "leaf" : true
                            }]
                }, {
                    "text" : "VIP",
                    "items" : [{
                                "text" : "Watch TV",
                                "leaf" : true
                            }, {
                                "text" : "Watch Video",
                                "leaf" : true
                            }]
                }, {
                    "text" : "Group-1",
                    "items" : [{
                                "text" : "Shopping",
                                "leaf" : true
                            }]
                }, {
                    "text" : "Group-2",
                    "items" : [{
                                "text" : "Eat",
                                "leaf" : true
                            }, {
                                "text" : "Sleep",
                                "leaf" : true
                            }, {
                                "text" : "Drinking",
                                "leaf" : true
                            }]
                }]
    }
    Submitted patch to original Author
    https://github.com/kawanoshinobu/Ext.ux.AccordionList

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