View Full Version : Grid column freezing or locking at right side

2 Nov 2011, 8:40 PM
I want a code related to freeze a column in grid at rightside.
but whenever i'm applying locked:true the column is coming left side but i want that column to be placed at rightside.
So,can u please help me on this issue.

3 Nov 2011, 7:44 AM
Out of the box no it is not possible... LockingView is just using hbox layout so it's possible. I have entered a feature request for this.


3 Nov 2011, 9:11 AM
I've hacked something together that seems to work. It's pretty horrendous and you'll need to do some further work on the CSS.

Ext.create('Ext.grid.Panel', {
injectLockable: function() {

// Switch the order of the two embedded grids in the hbox

// The horizontal scrollbar in 4.0.7 has a nasty hack in it for figuring out which grid to scroll.
// This even nastier hack ensures that the scrollbar gets the embedded grids in the order it expects.
query: function(cq) {
var items = Ext.grid.Panel.prototype.query.apply(this, arguments);

if (cq === 'tableview' && items.length === 2) {

return items;