3.2.0

setEvent() with setId()

Hi all;

I m trying to add doubleclick event on the row of the grid object. For css classes i use
awgridob.setId("patlistgrid");

and proper class definitions for this id. Behavior of this grid should be as following;
- onclick update another grid. Which is done by
awgridob.onCellClicked = function(event, col, row){....}
with expected behaviour.
-ondblclick set some variables and update some other tables, goes on like this. Here where i have problems.
awgridob.getTemplate("row").setEvent("ondblclick", dblevnt);

works when setId() not used.
I think getTemplate("row") is the reason for this. Can someone tell me what the template name "row" should be changed as when i setId as "xyz" for example. I tried "xyz-row" and some other but couldn't make it work.

Any idea, suggestion or solution is appreciated. Thanks.
S.Onur SELAMET
November 1,
You can also use onCellDoubleClicked or onRowDoubleClicked events -

http://www.activewidgets.com/aw.ui.grid/cell-mouse-events.html
http://www.activewidgets.com/aw.ui.grid/row-mouse-events.html
Alex (ActiveWidgets)
November 2,
Thanks Alex. I should have search through the class references in more detail. I m new to AW and actually need some time to recognize the components structure =)
S.Onur SELAMET
November 3,

This topic is archived.

See also:


Back to support forum