1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    asifu9 is on a distinguished road

      0  

    Default How to exclude last row of grid when sorting any column

    How to exclude last row of grid when sorting any column


    Hi All,

    I am new to extjs4, and i need help.
    I have a data grid which display some records. When we sort data on column wise i sort all the rows of the grid, but I don't want to sort the last record of the grid as it contains different data. Can any one help how to do this.

    Thanks in Advance.

    Asif

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    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


    Are you gathering your data from a server or local store?

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    asifu9 is on a distinguished road

      0  

    Default


    I am using local store/ajax proxy to get data from server.

    Code:
    proxy : {
    type: 'ajax',
    method:'POST',
    url: 'servletPath',
    reader: {
    type: 'json',
    model: 'myModel'
    }
    },

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    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


    There is nothing available to provide this functionality. Since you are using remove data/sort, perhaps you can manipulate the data before it is sent back to client.

    Can I ask what the intent is .. this is a curious request.

    Scott.

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    asifu9 is on a distinguished road

      0  

    Default


    Ok, Thanks for information.

    Actually i am display some data in grid and in last row i am display sum of each row for all the column.
    so when sorting the last row should stay at last only.
    Now if i sort the last row is shuffling to first row.

    Is there a way to override the sorting functionality in store/view, so that i can skip the last row.
    Is it possible in this way?

    Thanks,
    Asif

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    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


    Perhaps something like this:
    http://docs.sencha.com/ext-js/4-0/#!...eature.Summary

    Regards,
    Scott.

  7. #7
    Sencha User
    Join Date
    Apr 2012
    Posts
    16
    Vote Rating
    0
    asifu9 is on a distinguished road

      0  

    Default


    Thank you, this is what i was looking for.

    But i have two more concern.
    1. How to change the font style and size of the summary row?
    2. Suppose a column having data of time [ Example : 1:10 , 0:30 , 2:40 -> sum= 4:20 ], how to calculate sum for this type of data.

    Thank you very much.

    Regards,
    Asif

  8. #8
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    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


    You will have to review the source for the summary component and make your changes accordingly.

    Scott.

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..." hd porno faketaxi