Results 1 to 3 of 3

Thread: Accessing Grid Parameters

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    16
    Vote Rating
    0
      0  

    Default Accessing Grid Parameters

    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

    HTML Code:
                        xtype: 'button',
                        store: 'myStore',
                        width: 100,
                        text: 'Export',
                        handler: function() {
                            var grid = Ext.getCmp('myGridId');
                            grid.exportPdf();
                        }                                    
                    }
    how could I access those params at exportPdf() method?

    Thanks

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Vote Rating
    27
      0  

    Default

    Take a look at store.lastOptions in the API docs. This will get the last request parameters passed to the store's load method.

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    16
    Vote Rating
    0
      0  

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •