Sortable column headers without links?
Sortable column headers without links?
A sortable column header is rendered with 2 ways to sort. If you click on the header text it is a link which will refresh the page passing in querystring parameters telling the table how to sort a column. If you click the header outside of the header text, the sort is done client side. Is there a way to disable the link being rendered in a sortable column? I want to be able to sort and client-side sorting is perfect for me. I do not want my users to be able to click the link and refresh the page accidentally which may cause them to lose form data.
I know I can use jQuery to intercept the click event and stop it but just wondering if there is a way to disable it in the DataTables configuration. I couldn't find anything in the docs or any previous posts asking the same question.
I know I can use jQuery to intercept the click event and stop it but just wondering if there is a way to disable it in the DataTables configuration. I couldn't find anything in the docs or any previous posts asking the same question.
This discussion has been closed.
Replies
Allan