fortesl fortesl - 6 months ago 43
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download