pass a reference to an object
I've your grid placed on an object that shows a DIV element floating over an area of the page.
The grid has an action ('onSelect') asociated to the ondblclick event to select the current row.
I want to pass a reference of the container object of the grid to the function asociated with the selection action, so I can send a message to the container after making the selection on the grid (ie 'hide();')
Can you show me an example of how to do this?
grid runs the action handler as its own method, so 'this' refers to the grid JS object, this.element() is a reference to the grid HTML element (DIV) and you can use parentNode to obtain reference to the container.
The object populate a DIV element whit the HTML generated by your grid. I've a function that creates the grid and send it to this object I made. But I need to invoke an particular method when the selection of one row occurs.
Thanks for the answers.
I need to invoke a method of this object (to say "hide" when the user selects a row from the grid) in the action attached to the doubleclik event on the grid.
If I use this.element().parentNode only get access to the DIV element, but no to my object.
I hope I make my self more clear this time. Excuse my lame english!!
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.