Iterate an ExtJS store and add result as a JSON to an Ext.Ajax request

The following sample shows how you can iterate an ExtJS store (as used with a grid) and add some of the results as an JSON string to your Ext.Ajax request. It comes handy if you want to add results of more than one store or just some fields to the request.

This is how to do it

Don”t forget to decode the string on the server.

Johan van de Merwe
Dedicated to professional software development since 1985. Has worked since 1992 as IT manager in several international operating companies. Since 2007 CEO and Sencha Ext JS web application developer at Enovision GmbH.

Leave a Reply