Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
865
Urgent: To disable sorting when user left click on the mouse
posted

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 

 

 

 

  • 1332
    posted

    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.