Jquery Context Menu + asp.net Gridview
Im trying to create a gridview table with a right click menu so i can handle indivual items in the Gridview.
The problem im having is asp.net creates a gridview like a table. and then puts a hidden input feild in each table. the value of this hidden field is what i need to get in order to process it.
I cant figure out how to get it? I can only get the id of the item.. this is what i have so far:
$(document).ready(function() {
$('table td').contextMenu('myMenu1', {
bindings: {
'open': function(t) {
alert('Trigger was '+t.val+'\nAction was Open');
},
'email': function(t) {
alert('Trigger was '+t.id+'\nAction was Email');
},
'save': function(t) {
alert('Trigger was '+t.id+'\nAction was Save');
},
'delete': function(t) {
alert('Trigger was '+t.id+'\nAction was Delete');
}
}
});
});