1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    India
    Posts
    14
    Vote Rating
    0
    velucsc22 is on a distinguished road

      0  

    Default How to Convert ListStore to TreeStore?

    How to Convert ListStore to TreeStore?


    I am getting the ListStore<T> from my service provider. I want to convert this ListStore to TreeStore<T> and need to bind convert TreeStore to Tree<BaseDto>.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    A ListStore has no hierarchical data in it - no way to tell which items are children for which other items. This is the point of the TreeStore - you either pass in trees of objects that implement TreeStore.TreeNode, or you add items using the TreeStore.add or .insert methods to establish the hierarchy.

    How are you loading items into the ListStore, and why can't you modify that to load them into the TreeStore instead? Have you looked at the examples and their sources for both Grids (i.e. ListStore) and Trees (i.e. TreeStore)?

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    India
    Posts
    14
    Vote Rating
    0
    velucsc22 is on a distinguished road

      0  

    Default


    ListStore is in the form of List of HashMap. Each HashTable represents one table row where key as table column and values as column values. if the table have "n" records, the listStore will have "n" no of HashMap.

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Location
    India
    Posts
    14
    Vote Rating
    0
    velucsc22 is on a distinguished road

      0  

    Default


    Can anyone help me to construct TreeStore? I need to construct a TreeStore which can have any number of nodes in each hierarchical nodes. I am getting input as ListStore and based on the listStore data, i should construct the TreeStore. A simple example would be more helpfull. Thank you.

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    !!and!! is on a distinguished road

      0  

Thread Participants: 2

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