Try calling stopImmediatePropagation on the event
I have tried all as -
stopPropogation() [ with capturePhase set as true and false both ]
preventDefault() etc. but nothing works and the column is just getting sort in all cases when the button is clicked.
Let me know if you need to have a glance at the code I am working on.
Thanks for replying,
Couldnt you just toggle the dataGrid's SortableColumns property?
dataGrid.SortableColumns = false
elseif (header clicked)
dataGrid.SortableColumns = true
Wouldnt that work too?
I think the DataGrid is responding to mouseDown/mouseUp and not click. You
can try blocking those as well.
There is also a cancelable HEADER_RELEASE event before the sort takes place.
If you can retain enough information to know when to cancel, that should be