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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

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