quizzl
25 Nov 2011, 5:31 AM
Hello I created a Grid that is always grouped and I needed a button in the group header to add specific types to the grouped section.
I added an html button to the group header that I used css style float to align it to the right.
var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
groupHeaderTpl: '{name} <input type="image" style="float:right;" src="ext/examples/shared/icons/fam/add.png" value="add{name}" onClick="addBlock(this);">',
enableNoGroups: false
});
The problem is
1. In firefox the alignment is not inline with the header text, in IE it is inline.
2. How can I remove the section expand/collapse event on click from the groupheader as I do not want this to fire when the user clicks on the Add button. The collapse event should only fire when someone clicks on the Header or the +/- symbol.
I added an html button to the group header that I used css style float to align it to the right.
var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
groupHeaderTpl: '{name} <input type="image" style="float:right;" src="ext/examples/shared/icons/fam/add.png" value="add{name}" onClick="addBlock(this);">',
enableNoGroups: false
});
The problem is
1. In firefox the alignment is not inline with the header text, in IE it is inline.
2. How can I remove the section expand/collapse event on click from the groupheader as I do not want this to fire when the user clicks on the Add button. The collapse event should only fire when someone clicks on the Header or the +/- symbol.