1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default Unanswered: Difference between a list and a nested list

    Unanswered: Difference between a list and a nested list


    Hi,

    I wanna know the differences between a list and a nested list ?

    Acoording to me, a list is a basic enumaration of item(s) and a nested list is like a tree.

    List :

    - A
    - B
    - C

    Nested list:

    -------- A1
    - A -- |
    -------- A2

    - B
    -------- C1
    - C -- |
    -------- C2
    |
    -------- C3

    Thanks you for validating my view.

    Regards.

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Answers
    6
    Vote Rating
    2
    landed is on a distinguished road

      0  

    Default Nested List

    Nested List


    Yes the nested list allows you to separate the data and use the search bar so is useful for longer pieces of data like contacts list check out

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

  3. #3
    Sencha User hirokenshin's Avatar
    Join Date
    Jan 2012
    Location
    Paris, France
    Posts
    40
    Answers
    2
    Vote Rating
    0
    hirokenshin is on a distinguished road

      0  

    Default


    Yep.

    A list is just a simple list of element.
    A nested list is a tree of element.

    If I have a good understanding of how these components work in sencha - if I'm wrong, please correct me -, the nested list is a navigation view containing lists created from the data source.
    It needs to load all data at once. (the whole tree)

    A list is just a list...
    But you can embed it into a navigation view and customized the navigation to browse your data.
    For example :
    - the first view displays the root level of your data,
    - select an item in this list, push another list in the navigation view which displays the second level of your data,
    ...

    This solution will be better if you have a lot of data to display since you only load a part of the tree when you browse it.
    Otherwise a nested list is easier to use.
    --
    developer @ http://www.WebUbe.com
    lead programmer on Appocalypse

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default


    Is it possible to load sub-items step by step using a recursive jsonRpc call ?

    Each node that is not a leaf can call for a listing of the subtree or is it really mandatory to load the whole tree in one time ?

  5. #5
    Sencha User
    Join Date
    Apr 2011
    Posts
    42
    Answers
    2
    Vote Rating
    1
    GFI_SI is on a distinguished road

      0  

    Default


    I think there is also a difference in the store type. Nestedlist takes a treestore. I don't think list does.

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
    Thierryg is on a distinguished road

      0  

    Default


    Hi,

    First thanks for all the reply.

    So now i think i will used a nestedlist linked with treestore / proxy / jsonp (json rpc call).

    Code:
    Ext.define('FileSystemModel',
            {
                extend: 'Ext.data.Model',
                fields:
                [
                    { name: 'item', type: 'string' },
                    { name: 'type', type: 'int'    }
                ]
            });
            var FileSystemStore = Ext.create('Ext.data.TreeStore',
            {
                model              : 'FileSystemModel',
                defaultRootProperty: 'items',
                root               : data
            });
    I have checked on the example and inside the documentation, but i didn't find any good example.

    Is there a good skeleton/example that can help me to work efficiently and quicky ?

    Thanks in advance of your reply.

    Regards

  7. #7
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    San Antonio, TX
    Posts
    93
    Answers
    4
    Vote Rating
    0
    jnotti is on a distinguished road

      0  

    Default


    Quote Originally Posted by hirokenshin View Post
    Yep.

    A list is just a list...
    But you can embed it into a navigation view and customized the navigation to browse your data.
    For example :
    - the first view displays the root level of your data,
    - select an item in this list, push another list in the navigation view which displays the second level of your data,
    Do you know of a good example of using lists with a navigation view to push and pop lists?

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