:: Forum >>
double click event
I wish to implement a double click on mouse when I highlight a row so that I can send the double click row value to another page or another souce.
How can I do it?
Seems like replace the
click with dbClick does not solve the problem :(
Thanks for help
Wednesday, December 17, 2003
The problem here was also releated to row repaint on selection (click happens before dblclick). It is corrected in 0.2.3 so the following code should work now:
var row = new Active.Templates.Row;
row.setEvent("ondblclick", function(){this.action("myAction")});
obj.setTemplate("row", row);
obj.setAction("myAction", function(src){alert(src.getProperty("item/index"))});
Alex (ActiveWidgets)
Thursday, December 18, 2003
Thanks for the help.
Thursday, December 18, 2003
The above code, on the version I downloaded just a few days ago, has the nasty side effect of messing up the column resizing. However, if I do this:
var row = obj.getTemplate("row");
row.setEvent("ondblclick", function(){this.action("myAction")});
obj.setAction("myAction", function(src){alert(src.getProperty("item/index"))});
Then the column resizing will still work.
Enry
Wednesday, January 7, 2004
May I know why in FireFox this code doesn't work?
Daok
Sunday, March 27, 2005
This code works fine with Mozilla :-)
anonymous
Thursday, March 31, 2005
It seems that after an obj.refresh() is called the ondblclick event isn't working. Cand anyone help me with this? ... i'll have to redeclare the action?
Cristian BICA
Friday, April 1, 2005
This topic is archived.
Back to support forum
Forum search