3.2.0

Double click on topImage

I cannot find anywhere where it says whether it is possible to trap a double click on an image in the top left of the grid - is this possible?
Ian B
September 5,
You can use built-in onTopSelectorDoubleClicked event -

obj.setSelectorVisible(true);
obj.setTopImage("favorites");
obj.onTopSelectorDoubleClicked = function(){alert(1)};


http://www.activewidgets.com/aw.ui.grid/selector-mouse-events.html

or, to assign an event handler to the image (but not the text) use modified AW.Templates.ImageText object -

var top = new AW.Templates.ImageText;
var image = top.getContent("box/image");
image.setEvent("ondblclick", function(){alert(1)});
obj.setTopSelectorTemplate(top);
Alex (ActiveWidgets)
September 5,

This topic is archived.

See also:


Back to support forum