View Full Version : Accessing Grid Parameters

25 May 2011, 3:12 AM
Hello all,

I am kind of newbie to ExtJs and I have not yet fully acquired every aspect of the framework. I have a grid in a panel that has same parameters like start, limit, filters, sorting all sent remotely for the reader method. I want to export the grid snapshot via jasper but unfortunately I don't know how to access those parameters in order to pass the the jasper remote method.

I have something like

xtype: 'button',
store: 'myStore',
width: 100,
text: 'Export',
handler: function() {
var grid = Ext.getCmp('myGridId');

how could I access those params at exportPdf() method?


25 May 2011, 9:32 AM
Take a look at store.lastOptions in the API docs. This will get the last request parameters passed to the store's load method.

26 May 2011, 12:02 AM
store.lastOption is a null object because I do not pass any parameter to store to load, parameters go threw grid that filters and sorts. I have just to find out how to get a similar method bur for the grid