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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,568
    Answers
    539
    Vote Rating
    307
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    This is caused by simpleSortMode: true.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."