Hi,
I have a grid with a GridClientSelectColumn, i had a problem of selecting the row when clicking anywhere on it (even a button with a different action <<file download in my case>>), so i had to hack this so that the row is selected only when the check box is clicked, the following code works:
<ClientEvents OnRowSelecting ="RowSelecting" />
the problem i am having now is that window.event does not work on firefox,
any help?
I have a grid with a GridClientSelectColumn, i had a problem of selecting the row when clicking anywhere on it (even a button with a different action <<file download in my case>>), so i had to hack this so that the row is selected only when the check box is clicked, the following code works:
<ClientEvents OnRowSelecting ="RowSelecting" />
| function RowSelecting(sender, eventArgs) |
| { |
| var e = window.event; |
| if(e.srcElement.tagName == "INPUT") |
| { |
| eventArgs.set_cancel(false); |
| } |
| else |
| { |
| eventArgs.set_cancel(true); |
| } |
| } |
the problem i am having now is that window.event does not work on firefox,
any help?