:: Forum >>
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.
Narayana Swamy, Bangalore
Tuesday, September 11, 2007
disableContextMenu() is my own javascript method to show my menu items.
2) I have one column with checkboxes when i click on that cell the row is not highligted. I want to highlight the row when i click on the cell where the check box is there.
Narayana Swamy, Bangalore
Tuesday, September 11, 2007
hi guys i got the solution
obj.onCellMouseDown = function(event, column, row){
if(event.button==2)
//Here our code will come
}
Narayana Swamy, Bangalore
Tuesday, September 11, 2007
2) I have one column with checkboxes when i click on that cell the row is not highligted. I want to highlight the row when i click on the cell where the check box is there.
Narayana Swamy, Bangalore
Tuesday, September 11, 2007
Alex (ActiveWidgets)
Tuesday, September 11, 2007
This topic is archived.
Back to support forum
Forum search