PDA

View Full Version : Grid toolbar handler



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....

gregsimons
14 Jun 2007, 10:57 PM
I found the solution for this, I needed to pass the scope in to the original instantiation.