Monday, November 18, 2013

Loading Extjs Stores

Ok, so I spent about 45 minutes on a really dumb problem.

I needed to do an Ajax request with different parameters in a single extjs store, and for some reason, the store kept on using the first parameters and displayed the same data.

The fix is to call the load method and pass the load method your params!

Yes, you can do this. I probably knew, but I forgot. Hopefully writing this will help me remember.

store.load({
    params:{
        //put params here.
    }
});

No comments:

Post a Comment