3.0 beta 2

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
September 11,
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
September 11,
hi guys i got the solution

obj.onCellMouseDown = function(event, column, row){
if(event.button==2)
//Here our code will come
}
Narayana Swamy, Bangalore
September 11,
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
September 11,
Alex (ActiveWidgets)
September 11,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.