1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
    titombo is on a distinguished road

      0  

    Default Answered: Multiple sorting grid problem

    Answered: Multiple sorting grid problem


    Hi everybody, I am trying to make a sorting based in two columns, DateReceived and AvailableQty, in my case.
    The problem is that only the string 'DateReceived' is passed to the server-side, and as you can see it should be '{DateReceived,AvailableQty} '.

    I checked the code from the example: http://docs.sencha.com/ext-js/4-0/gu...ore/index.html
    the Json that is passed in the example above is correct and different from the JSON passed by my code, the reason I don't know.

    You can check my code bellow:

    Code:
    //STORE 
    Ext.define('IssueInventoryPartGrid.store.IssueInventoryParts', 
    {
    
    extend: 'Ext.data.Store',     
    model: 'IssueInventoryPartGrid.model.IssueInventoryPart',    
     autoLoad: true     
    , pageSize: 200     
    , remoteSort: true     ,
     sorters: ['DateReceived','AvailableQty'] 
    });


    Code:
    //MODEL Ext.define('IssueInventoryPartGrid.model.IssueInventoryPart', 
    {     extend: 'Ext.data.Model'     
    , fields: 
    ['Id', 'QtyToIssue', 'AvailableQty', 'BatchNumber', 'StockAddressName', 
    'QtyOnHand', 
    'ReservedQty',
    'TotalCost',
    { name: 'DateReceived', type: 'date', dateFormat: 'MS' }]   
     , proxy: {
    type: 'ajax',
     api: {read: 'QuantityInStockEditableList' , 
    update: 'IssueQuantity'
    , create: 'IssueQuantity'
    }       
     , extraParams: 
    { 
    total: 50000
     ,partId: eval(Ext.urlDecode(window.location.search.substring(1)))        
     }
    , reader: 
    {
      type: 'json'
    , root: 'IssueInventoryParts'
    , successProperty: 'success'
    , totalProperty: 'total' 
    }
    , simpleSortMode: true
    } });
    Best regards,
    Tito Morais


  2. This is caused by simpleSortMode: true.

  3. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    This is caused by simpleSortMode: true.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar