PDA

View Full Version : remove sort button from multiple sorting example



ttbgwt
1 May 2012, 7:44 AM
In this example:

http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/multiple-sorting.html

h (http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/multiple-sorting.html)ow can I remove an item from the sort bar once it is placed there?

scottmartin
1 May 2012, 8:06 AM
Do you want to hide it or completely remove the item?

Regards,
Scott.

ttbgwt
1 May 2012, 8:11 AM
Remove the item so that it is not included in the sort...

scottmartin
1 May 2012, 1:04 PM
You could try something like:




Ext.create('Ext.Button', {
text: 'Click me',
renderTo: Ext.getBody(),
handler: function() {
var btn = tbar.down('button[text=Salary]');
btn.destroy();
}
});


Regards,
Scott.

ttbgwt
23 May 2012, 4:44 PM
How can I detect a right-click event on the button?