1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
    hieu79vn is an unknown quantity at this point

      0  

    Default delete sort info in ajax url

    delete sort info in ajax url


    Hi

    I have a grid and a store
    Code:
    var storeBlog = Ext.create('Ext.data.JsonStore',{
            model: 'BlogListModel',
            remoteSort: false,
            proxy:{
                type:'ajax',
                method: 'GET',
                reader:{
                    type:'json'                
                }
            }
        });
    data are loaded when I call this function
    Code:
    loadThreadDetail: function(rec) {
                delete this.store.sortInfo;
                this.store.getProxy().url ='....thread_list_temp?' + 'ThreadID=' + rec.get('thread_id');
                this.store.load();  
                
            },
    My problem is when Extjs call ajax to server, it put in the url the sort information which is generated when we click sort on the grid.
    ThreadID=989&_dc=1340975517858&page=1&start=0&limit=25&sort=%5b%7b%22property%22%3a%22blog_date%22%2c%22direction%22%3a%22ASC%22%7d%5d
    How can I remove these sort info before the store call to server to get data??

    Thank you very very very much

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,866
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Do you have a sorters property set somewhere?

    Code:
        sorters: {
            property: 'id_user',
            direction: 'ASC'
        },
    It has to getting blog_date from somewhere.
    You can also add
    Code:
    sortParam: false
    to your proxy.

    Scott.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
    hieu79vn is an unknown quantity at this point

      0  

    Default


    Thank you Scott
    I found this also
    limitParam: undefined,
    startParam: undefined,
    paramName: undefined,
    pageParam: undefined,
    sortParam: undefined,
    filterParam: undefined,
    noCache:
    false,

Thread Participants: 1