PDA

View Full Version : How to change template behaviour when store is empty



marogalli
8 Mar 2012, 1:44 PM
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.

mitchellsimoens
8 Mar 2012, 5:15 PM
In what widget?

marogalli
9 Mar 2012, 7:50 AM
I am using DataView widget.

mitchellsimoens
9 Mar 2012, 7:57 AM
Are you wanting the emptyText?

marogalli
9 Mar 2012, 10:36 AM
Thank you! It is working now!

I tried use EmptyText but my backend was returning :



{ sucess : true,
infoCotacao : [ {}]
}


When I changed to empty string "", the emptyText worked.

Appreciate you help.