Results 1 to 8 of 8

Thread: How to use extraParams?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Vote Rating

    Default Answered: How to use extraParams?


    First I am sending a request (param) to the server and using the same PHP for another grid, but that grid doesn't give me data with passed param , but when I send param in the url I can get it done. When I searched for it, there is an object extraParams, I am using like,

        xtype: 'gridpanel',
        url: 'php/update.php',
        extraParams: {
            'columnname': selectedField
    This doesn't seem to work, it isn't sending the extra parameter. What am I doing wrong?


  2. Where are you wanting to build the array of selected field values? You shouldn't do this on every checkbox select, but rather just prior to performing your AJAX call (I'm assuming on a button push somewhere?).

    var selections = Ext.getCmp('your_grid_id').getSelectionModel().getSelection();
    var arr = [];
    Ext.each(selections, function(rec, index) {
    You can then pass "arr" as your extra param during the AJAX call.

Posting Permissions

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