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
December 17,
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)
December 18,
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
January 7,
May I know why in FireFox this code doesn't work?
Daok
March 27,
This code works fine with Mozilla :-)
anonymous
March 31,
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
April 1,