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
    ASraniel is on a distinguished road

      0  

    Default B1, emptyText not working gor List

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,604
    Vote Rating
    818
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2011
    Location
    Nottingham, UK
    Posts
    24
    Vote Rating
    0
    mysterydiner is on a distinguished road

      0  

    Default Please reopen - emptyText not working

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,604
    Vote Rating
    818
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2013
    Posts
    1
    Vote Rating
    0
    AmrutheshC is on a distinguished road

      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???