Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris Nockolds on Oct 12, 2007 12:22
open dhtmlx forum
How to prevent sorting when clicking on filter boxes in header?

Hi
I have attached filter controls to a second header row with mygrid.attachHeader.
When these filter controls are clicked, they trigger a sort on that column.
How do I prevent that behaviour, but still allow sorting by clicking on the top row of the header?

Rgds
Answer posted on Oct 12, 2007 18:45
You need to stop event propaganation

document.getElementId('ss').onclick=function(e){ (e|event).cancelBubble=true; return false; }

Oncoming version will have code to fix such problem automatically.