gregsimons
13 Jun 2007, 6:25 AM
Hi
I have a class that creates a grid which i also add a toolbar too. On this toolbar there are buttons for copy, selectall etc.
What I want to be able to do is be able to access the grid on the functions that the handler calls. Is there anyway.
Ive tried doing
className.prototype.selectAll(){
this.getGrid().getSelectionModel().selectAll()
}
This produces the error that my grid has no properties and therefore cant be found.
handler: this.selectAll
Thanks....
I have a class that creates a grid which i also add a toolbar too. On this toolbar there are buttons for copy, selectall etc.
What I want to be able to do is be able to access the grid on the functions that the handler calls. Is there anyway.
Ive tried doing
className.prototype.selectAll(){
this.getGrid().getSelectionModel().selectAll()
}
This produces the error that my grid has no properties and therefore cant be found.
handler: this.selectAll
Thanks....