Results 1 to 5 of 5

Thread: How to change template behaviour when store is empty

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: How to change template behaviour when store is empty

    I have a template that works perfectlly when my store is not empty. I was wondering how to change the template output when the atttached store is empty.

  2. Are you wanting the emptyText?

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    In what widget?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Sep 2009
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I am using DataView widget.

  5. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    Are you wanting the emptyText?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Sep 2009
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Thank you! It is working now!

    I tried use EmptyText but my backend was returning :

    Code:
    {  sucess : true, 
    infoCotacao : [ {}]
    }
    When I changed to empty string "", the emptyText worked.

    Appreciate you help.

Posting Permissions

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