fortesl fortesl - 1 month ago 11
AngularJS Question

Slickgrid - Resizing columns triggers onHeaderClick event

I have subscribed to the onHeaderClickEvent and it works fine. My problem is that when a column gets re-sized, the onHeaderClickEvent also gets triggered which causes my header click handler to run. Is there a way to prevent, or disable, the header click event when columns are re-sized? Thanks.

Answer Source

You could use onColumnsResized to track the event and set a flag for use within onHeaderClick.

Alternatively, you could add either a header menu or header buttons to serve as the target of user interaction.