Hi
I have a <div id="parentView"> element containing a CGridView.
I bound the following delegated jquery event handler to this <div> element:
$(’#parentView’).on(“click”, “tr:gt(1)”, function(event){
//do something
});
This event handler catches the events bubbling up when the gridview’s rows are clicked.
My problem is that these row-clicked events are triggered – not only when the user clicks on a row, but also when the user clicks on a button in the row.
I thus have to change my code to only handle row-clicks that were not caused by the buttons on that row.
I suspect that the solution could be quite tricky if the button and its row fire separate events.
Any ideas?
Thanx