I am using:
grid.attachEvent(“onRowDblClicked”,…
To attach an event to my Grid. The thing is that I’ve multiple grids and I want to be able to reuse my event handlers. I am not sure how to pass the “grid” object as part of the event handler such that the method invoked can perform the action on the correct grid.
The basic API is sending only rowid, and this can reffer to any grid in the page, and not the double-clicked one…
I also can not refer to the grid global object because it’s name is dynamic such that it will be very hard to maintain it’s ID throught the code.