vaadin-grid-sorter

Hi,
i using vaadin grid sorter and need to catch click event. when i click on sorter i dont need to fire sorting function, because i need to send path and direction to backend (reload page with clicked path and direcion) but i want to show the sorting arrows. is there any way to do this?
thnx

Hi. vaadin-grid is designed so that the actual sorting would happend when the user clicks on the arrow. But you can for example:

  1. Use the sorter, but add your own arrows and behaviors for it. Take a look at this example: [url=https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-grid/demo/styling-material.html#material-design]
    https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-grid/demo/styling-material.html#material-design

[color=#696969]
2) Remove the sorter and add your own arrow to the header cell’s template with it’s own click handler.

Let me know if these helped.
[/color]
[/url]