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

How to access a particular row on right click using contextmenu functionality?

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 17 Dec 2015, 08:56 AM
Can someone tell how to access that particular row of a Kendo Grid on right click using contextmenu option. I tried to give target as the Kendo grid class and inside the select functionality, i added grid.removeRow(e.target); (My requirement is to provide an option to remove a particular row.)

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 21 Dec 2015, 09:00 AM

Hello Stefan,

 

As far as I understand the context menu is shown when user clicks on a table row? So basically the solution for this case is to call the removeRow method and pass the clicked row (e.target) as parameter. If you insist to delete a specific row that is not the clicked row (e.target) you can pass as parameter the exact table row element you want to delete. 

 

If this suggestion does not help your current scenario please elaborate a bit more on your case. An example scenario will be helpful in order to understand what you are trying to achieve. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or