PDA

View Full Version : get coordinates of a cell in a EditableGridPanel



attu
2 Dec 2009, 12:34 AM
Hello!

I've got some questions about EditableGridPanel.
- Can i know how many rows i have in a EditableGridPanel?
- When i focus on a cell of a EditableGridPanel, can i know exactly where i am? I mean, take the number of row and the number of the column...

I've been looking the API, tutorials and forum and i didn't found anything. I know that i can use startEditing(x,y) function, but the problem is i don't know where i've focused...

Thanks a lot in advance!

attu
2 Dec 2009, 1:33 AM
I'm still searching and i've found the cellclick listener, but i need to take the coordenates of a cell with a keyboard event...

Thanks!

attu
2 Dec 2009, 2:54 AM
I also tried to call a mouse event from a keyboard event like this:


myGrid.fireEvent('cellclick');

but it didn't work because i have to send row and column parameters...

Any idea?

Thanks!