Results 1 to 2 of 2

Thread: Passing values from form to grid with pagination

  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    1

    Default Passing values from form to grid with pagination

    Hi,

    I try to connect a form with a store/grid so that whenever I refresh, load or move to a next/previous page it loads all the parameters from this form. Store is reading data via json from a remote server.

    I tried this in my store class:

    Code:
        listeners: {
            beforeload: function(store, operation, eOpts) {          
                var form = Ext.getCmp('Form');
                var values = form.getForm().getFieldValues();
    
                Ext.apply(store, {
                    params: Ext.encode(values)
                });
            }
        },
    but it doesn't seem to work. Params are being set, but the call to the server only contains start, page and limit values.

    What is the recommended solution?

    Thank you

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Here's an older thread that may help:
    https://www.sencha.com/forum/showthread.php?160792

Similar Threads

  1. passing grid values
    By stahl.stalin in forum Ext: Q&A
    Replies: 1
    Last Post: 12 Oct 2012, 12:55 PM
  2. Passing form values to PHP
    By Nick334 in forum Ext: Q&A
    Replies: 6
    Last Post: 5 Jul 2012, 7:21 AM
  3. Passing form values to Ext.Ajax.request
    By lukep1984 in forum Ext: Q&A
    Replies: 13
    Last Post: 10 Jan 2012, 3:02 AM
  4. [SOLVED] passing form field values to a subroutine
    By RonHaines in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 4 May 2010, 11:45 AM
  5. Form with StandardSubmit not passing values correctly
    By cnfcruz in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Sep 2009, 10:25 AM

Tags for this Thread

Posting Permissions

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