Results 1 to 3 of 3

Thread: nestedList list items display, but no text.

  1. #1
    Sencha User igaenssley's Avatar
    Join Date
    Dec 2007
    Location
    Atlanta, GA
    Posts
    25
    Vote Rating
    0
      0  

    Question nestedList list items display, but no text.

    I've got a tab panel with a few tabs. one tab contains a nested list as an item.
    Code:
                         {
                                title: 'Nested List Tab',
                                iconCls: 'bookmarks',
                                items:[
                                    {
                                        xtype:'list',
                                        bodyMargin:10,
                                        layout:'fit',
                                        displayField: 'text',
                                        title:'test',
                                        items:[
                                            {
                                                text:'item 1',
                                                leaf:true
                                            },
                                            {
                                                text:'item 2',
                                                leaf:true
                                            }
                                        ]
                                    }
                                ]
                            }
    The list renders, and there is a white line item for both items, but it does not display the text. any thoughts?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488
    Vote Rating
    147
      0  

    Default

    I don't see a NestedList in this example.

    There is a panel (without a layout) and a list as a single child item.

    Your list should not be using a layout and it should not have items.

    What are you trying to achieve?
    Aaron Conran
    @aconran

  3. #3
    Sencha User jep's Avatar
    Join Date
    Sep 2010
    Posts
    862
    Vote Rating
    24
      0  

    Default

    This was confusing to me, too - that a list was supposed to operate solely off of tpl and a store, and not do anything with "items" or "data". Of they did say nestedlist, so there may be even more problems.

Similar Threads

  1. add new items to nestedlist
    By Alexander.K in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 7 Sep 2010, 6:17 PM
  2. List design breaks inside nestedlist.
    By blessan in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 25 Aug 2010, 9:31 PM
  3. ETA on NestedList inheriting from List
    By meyerovb in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 10 Aug 2010, 3:43 PM
  4. NestedList back button only remembers text and items?
    By jsm174 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 6 Aug 2010, 11:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •