PDA

View Full Version : Store "load" event not fired if no record were found ?



ssayen
20 Apr 2011, 4:13 AM
Hello

I just upgraded from Ext JS 2.2.1 to 3.3.1.
It seems that now the load event from store is not fired if the records are empty.

Is that right ? Is there any way to trigger the load event (or another event) on empty store load ?

Thanks
Laurent

Screamy
20 Apr 2011, 5:05 AM
The load event fires for me when no records are returned to the store, where the JSON response is '[]'.

Are you returning an empty JSON array when no data is found?

ssayen
20 Apr 2011, 5:25 AM
Damn, you're right ! I was sure I was returning an empty json array, but I didn't.

Strange that it was working with 2.x Ext though.

I'm feeling so stupid right now, but thanks Screamy ! ;)

Laurent