OnRowClick determine column

2 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 25 Apr Link to this post

    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

     
  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 27 Apr Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top