I got your new grip package and there seems to be a problem with how the sorting works when combined with header template. In the example below you can see the problem. Try sorting by "Product name". When you click on the template the sort does not work. If you click on the link outside the div element then the sort works.
http://plnkr.co/edit/SukCe787HAwIwEgnRiC4?p=preview
The problem comes from how the sortColumn handler in header.component is defined. Apparently if the target is not the link element then the sort operation is interrupted. Does this mean that each header template must handle click events (for sorting) internally?
HeaderComponent.prototype.sortColumn = function (column, event, link) {
var target = event ? event.target : null;
if (column.headerTemplateRef && target !== link) { // this is the problem
return false;
}
...
};
How are we supposed to use the grid's sort logic with header templates?
P.S. clicking on the sort arrow icon also does not fire the sort event.