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

How to set the trigger only for the third column td,not all the td in a grid?

1 Answer 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ABC
Top achievements
Rank 1
ABC asked on 17 Apr 2013, 09:30 AM
How to set the trigger only for the third column td,not all the td in a grid?
I had set all the td like this:
my.contextMenu({
trigger: '#Grid td ',
rightButton: true,
menu: '#testMenu',
callback: ctxCallback
});

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 17 Apr 2013, 01:19 PM
Hi,

 
I would suggest to use the following jQuery selector to achieve the desired behavior:

$("#Grid tbody tr td:nth-child(3)")
Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
ABC
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or