ExtJs Grid load data via POST method

In ExtJs7.x, a grid load data uses GET method by default. However sometimes we want to load a grid using a POST method, then we need to adjust the proxy config.

Here is an example:

The key is actionMethods.

Now the grid could load data by sending POST method, but the parameters are sent via params like form fields. With config paramsAsJson, the request parameters can be sent as json data.

The full config is:

END!!

Leave a Reply

Your email address will not be published.