Results 1 to 5 of 5

Thread: B1, emptyText not working gor List

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    20
    Vote Rating
    0
      0  

    Default B1, emptyText not working gor List

    My list should show some text if the store it displays is empty. This worked in PR3 and PR4, but not anymore with b1.
    I simply define the empty text in the list:
    Code:
    emptyText: "<div class=\"mainPanel\">Empty list</div>",
    edit: I made an error in the title, it should be:B1, emptyText not working with List


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    It's working for me using the list example. If you open app.js and add emptyText to something in the list and then change contacts.json to just [] it will apear.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2011
    Location
    Nottingham, UK
    Posts
    24
    Vote Rating
    0
      0  

    Default Please reopen - emptyText not working

    Hi - emptyText in list views not working in Sencha touch v2.0.0 and 2.0.1.
    For an example check 'Nested Loading' in the KitchenSink app. This is supposed to display 'No Data Loaded'.
    Also can't get it working in my app - but think the Kitchen Sink usage is a good enough example.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by mysterydiner View Post
    Hi - emptyText in list views not working in Sencha touch v2.0.0 and 2.0.1.
    For an example check 'Nested Loading' in the KitchenSink app. This is supposed to display 'No Data Loaded'.
    Also can't get it working in my app - but think the Kitchen Sink usage is a good enough example.
    Code:
    new Ext.dataview.List({
        fullscreen : true,
        itemTpl    : '{text}',
        emptyText  : 'No data',
        store      : {
            autoLoad : true,
            fields   : ['text'],
            proxy    : {
                type : 'ajax',
                url  : 'data/json.json'
            }
        }
    });
    json.json:

    Code:
    []
    I see 'No data' using 2.0.1
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default

    How can we show the empty message if we are not loading the store data through a url but by manually setting data to store???

Posting Permissions

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