:: Forum >>

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
Tuesday, September 5, 2006
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)
Tuesday, September 5, 2006

This topic is archived.


Back to support forum

Forum search