Hi,
I want to disable Sorting when user click on the left click of the mouse on a column header. I have written code for the right click. but i want to disable the left-click event. I have written some javascript code in the Client-side ColumnHeader Click, when the user click on the right-click of the mouse. i want to disable the left-click. Can someone tell me how to do it?
Thanks and Regards,
Jollyguy
Hello,
If you want to disable the sort when a header is clicked, you can change the HeaderClickActionDefault property to either NotSet or Select:
e.Layout.HeaderClickActionDefault = Infragistics.WebUI.UltraWebGrid.HeaderClickAction.Select;
Clicking the column header with the left mouse will no longer sort the column.