Posted on: 1/17/2014 2:39:01 PM | Views : 654

Hi,
I am trying to get the sort direction of a gridview column. So far, I can click on the column and get the column name, but I also need to find the sort direction of the clicked column as in ASC or DESC in JavaScript.
OR
How can I get the CSS image asc arrow Up or desc arrow down image in the column header as in sort_asc.png or sort_desc.png. If I have get the loaded image, I can figure the sort direction in the c# code. 
 
 
Any help is greatly appreciated.
            $('th').click(function () {                 var col = $(this).html(); // Get the content of the <th>                 document.getElementById('<% = hfColumn.ClientID %>').value = col;      ...

Go to the complete details ...