Results 1 to 4 of 4

Thread: Dynamic empty text for grids

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Dynamic empty text for grids

    Can't we change the empty text of a grid dynamically. is there a proper method to do it.
    for example one empty text for when data is empty, one for after applying a filter and data is empty.

    thank you

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    You may have to change the el also.
    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

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default What I did

    Thanks,

    here what i did,

    var grid=this.up('grid'),
    view=grid.getView();
    if(view){
    view.emptyText="SAMPLE EMPTY TEXT";
    view.refresh();
    }

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    34
    Answers
    2
    Vote Rating
    4
      0  

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
  •