How to display my own menu on row right click not in header?
Hi all,
Thank in response,
I am using AW grid, actually i want to display my custom menu when the row is selected and if we right click only.
Actually i am using some code but its displaying my menu when i am clicking on header also. I want to prevent the display on click of grid header.
This is my code.
var myRow = new AW.Grid.Row;
myRow.setEvent("onmousedown", function(event){
if(event.button==2){
disableContextMenu();
}
});
obj.setRowTemplate(myRow);
This is working fine for my row selection but its working with headers also i want to prevent on headers.
Thank in response,
I am using AW grid, actually i want to display my custom menu when the row is selected and if we right click only.
Actually i am using some code but its displaying my menu when i am clicking on header also. I want to prevent the display on click of grid header.
This is my code.
var myRow = new AW.Grid.Row;
myRow.setEvent("onmousedown", function(event){
if(event.button==2){
disableContextMenu();
}
});
obj.setRowTemplate(myRow);
This is working fine for my row selection but its working with headers also i want to prevent on headers.
Narayana Swamy, Bangalore
September 11,