PDA

View Full Version : Is there way exclude a row from sorting ina grid.



Susanta_bmc
10 Nov 2011, 4:11 PM
Is there way to set a config so that a specific row can be excluded from sorting in a grid?
For example i have a grid and it has a "Total" row, and when the user click sorting i don't want the Total to move , it always needs to stay at bottom.

tvanzoelen
11 Nov 2011, 3:22 AM
Why not use the Summary feature?

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.feature.Summary

Susanta_bmc
11 Nov 2011, 8:53 AM
thanks for the reply.

I thought of this, but on the grid i needed more control as the user can delete a record or can use a fill right option(a cell value can copied across the grid..), hence need to update the total column and total row.

Not a problem i disabled sorting for the columns

skirtle
11 Nov 2011, 9:40 AM
I haven't tried it but I would assume that the summary feature would automatically update when the data in the other rows changes. Doing it manually sounds like more work.