Results 1 to 3 of 3

Thread: How to send extra parameters in proxy request while paging through a grid panel?

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default How to send extra parameters in proxy request while paging through a grid panel?

    Here is the store


    Ext
    .define(
    'AM.store.Users', {extend: 'Ext.data.Store',model: 'AM.model.User',pageSize: 10,autoLoad: true,remoteSort: true,
    proxy: {type:
    'ajax',api: {read: 'FlexServlet'
    },reader: {type:
    'json',root: 'users',totalProperty: 'total'
    }} })

    How do i send textfield value which has been set in a view while paging through the gridpanel as parameters?

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Guys,Any idea..throw some light..

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    158
    Vote Rating
    10
      0  

    Default

    Proxies have an extraParams config that you can manage. You'd do

    store.proxy.extraParams.theNameOfTheParameter = theValueOfTheParameter;

    The equivalent in ExtJS 3 was store.baseParams

Posting Permissions

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