makana
10 Aug 2010, 1:07 PM
Sure, MultiSorting of Grids is in examples (http://dev.sencha.com/deploy/dev/examples/grid/multiple-sorting.html). But sometimes, you don't have a whole toolbar for sorting. So I decided to manage it in a separate window.
Extract the archive directly into examples folder and open multisort.html to see how it is done.
Tested in FF3.6, IE8, Opera10.5 and Chromium6.0 on Windows.
To have it in German, use:
Ext.ns('Ext.ux.grid');
if (Ext.ux.grid.SortGridPanel) {
Ext.override(Ext.ux.grid.SortGridPanel, {
buttonCfg: {
up: {
text: 'Nach oben'
},
down: {
text: 'Nach unten'
},
asc: {
text: 'Aufsteigend sortieren'
},
desc: {
text: 'Absteigend sortieren'
}
},
columnText: 'Spalte'
});
}
if (Ext.ux.grid.SortWindow) {
Ext.override(Ext.ux.grid.SortWindow, {
buttonCfg: {
cancel: {
text: 'Abbrechen'
},
ok: {
text: 'OK'
}
},
title: 'Sortierung'
});
}
if (Ext.ux.grid.SortButton) {
Ext.override(Ext.ux.grid.SortButton, {
text: 'Sortierung'
});
}
Extract the archive directly into examples folder and open multisort.html to see how it is done.
Tested in FF3.6, IE8, Opera10.5 and Chromium6.0 on Windows.
To have it in German, use:
Ext.ns('Ext.ux.grid');
if (Ext.ux.grid.SortGridPanel) {
Ext.override(Ext.ux.grid.SortGridPanel, {
buttonCfg: {
up: {
text: 'Nach oben'
},
down: {
text: 'Nach unten'
},
asc: {
text: 'Aufsteigend sortieren'
},
desc: {
text: 'Absteigend sortieren'
}
},
columnText: 'Spalte'
});
}
if (Ext.ux.grid.SortWindow) {
Ext.override(Ext.ux.grid.SortWindow, {
buttonCfg: {
cancel: {
text: 'Abbrechen'
},
ok: {
text: 'OK'
}
},
title: 'Sortierung'
});
}
if (Ext.ux.grid.SortButton) {
Ext.override(Ext.ux.grid.SortButton, {
text: 'Sortierung'
});
}