-
3 Oct 2012 6:03 AM #1
Unanswered: Problem with empty text config of sencha list
Unanswered: Problem with empty text config of sencha list
Hi,
I am using EmptyText for a list to show “No Data” text when list is empty.The problem is,I get this text even when store loading is in progress.I want to show this text only once store data loading is finished and there is no data to show in the list.I used also deferEmptyText to resolve this issue, but of no use. Please suggest me for the same.
-
3 Oct 2012 7:19 PM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,186
- Vote Rating
- 194
- Answers
- 433
Have a look at the refresh function to override the default behavior.
You would most likely need to clear it after you remove the records instead of waiting for the refresh to take place to update display.
Scott.Code:if (records.length < 1) { if (!me.deferEmptyText || me.hasSkippedEmptyText) { Ext.core.DomHelper.insertHtml('beforeEnd', targetEl.dom, me.emptyText); } me.all.clear(); } else { me.all.fill(Ext.query(me.getItemSelector(), targetEl.dom)); me.updateIndexes(0); }


Reply With Quote