PDA

View Full Version : Firing a row event from a link within a cell



MrKurt
12 Apr 2007, 11:06 AM
I paid for my premium support, now I'm going to abuse it by posting over and over... haha! :)

Anyway, in the context of my app, it probably makes the most sense to trigger an action with a double click on a row. However, that's not the most intuitive thing ever for a web based application, so I'd also like to have an "Edit" link or equivalent that fires off the same event.

Is this at all feasible? Alternatively, is there any way to figure out which specific column was clicked with the rowclick event? That might be a reasonable way to handle it.

jack.slocum
12 Apr 2007, 12:14 PM
There's a cell click event which could get you that data. But yes, you can also use the e argument of the dblclick or click with grid.getView().findCellIndex() to find the column.

MrKurt
12 Apr 2007, 12:22 PM
Oh, I totally missed cell click. That should do it.