Mar 03, 2009, 5:05 PM
[CLOSED] Can't get PreventDefault to work in AjaxEvent
Hi
I', having problem removing the browser contextmenu on RowContextMenu in AjaxEvent. I tried the PreventDefault = true, but it don't seem to work. My Handler creates another menu and they both gets shown at the same time.
The same code work in other places (TreePanel). What am I doing wrong?
Klavs Martens
I', having problem removing the browser contextmenu on RowContextMenu in AjaxEvent. I tried the PreventDefault = true, but it don't seem to work. My Handler creates another menu and they both gets shown at the same time.
The same code work in other places (TreePanel). What am I doing wrong?
grid.AjaxEvents.RowContextMenu.Event += OnContextMenu;
grid.AjaxEvents.RowContextMenu.PreventDefault = true;
grid.AjaxEvents.RowContextMenu.ExtraParams.Add(new Parameter("X", "e.getPageX()", ParameterMode.Raw));
grid.AjaxEvents.RowContextMenu.ExtraParams.Add(new Parameter("Y", "e.getPageY()", ParameterMode.Raw));
Regards Klavs Martens