I’m generating a gridview where one of the columns consists of document references (numeric values) as links to a separate controller action which triggers download for relevant document. Those links are generated with Html::a method within a closure.
Although I’ve got ‘data-method’ => ‘post’ set up for the link config, the request gets triggered as GET. It helps if I place the links within yii\grid\ActionColumn (POST request gets fired) but then I loose the ability of sorting the column.
Am I missing something? Is there a workaround to be able to fire POST request from a column without making it ActionColumn?