This is a migrated thread and some comments may be shown as answers.

OnRowClick determine column

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Apr 2016, 10:42 AM

Hi, I have a client rowclick event and also a checkbox column - how do you use both together without the checking causing a rowclick event - or how do I determine the column clicked inside the rowclick so I can ignore the event when it is in the checkbox column.

Regards

Jon

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 27 Apr 2016, 12:47 PM
Hi Jon,

Clicking on the checkbox should not trigger the RowClick event. This event should be raised only when you click outside the checkbox.

With that said, in order to determine what cell was clicked you can use the following approach:

function rowClick(sender, args) {
     
    var clickedCellElement = args.get_domEvent().rawEvent.target;
 
 
}


Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or