Error on rejectChanges() call on ExtJs store

|
I have an ExtJs store that causes an error to raise when its rejectChanges() method is called. It looks like (from stepping through) that the rowIndex that the underlying ExtJs code is trying to hit is out of bounds. Why, I'm not sure. The closest search result I find took me to Commit/Reject changes in EditorGrid from the ExtJs forums, which was *not* helpful :(

I haven't worked out why it worked (as my code *does* already clear the filter earlier in the execution path), but, adding:

store.clearFilter(true);
Immediately before the call to rejectChanges() works a treat. Go figure!

About this Entry

This page contains a single entry by Robert Wray published on January 6, 2009 10:09 AM.

Resolving Coolite objects in client script was the previous entry in this blog.

Why Wikipedia's "Listen to a Sample" is a bit piss poor.. is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 5.04