Sep 08, 2010, 9:35 PM
[CLOSED] GridPanel: correct way to get the row number
Hi again!
I want to know what is the right way to get through javascript, the number of row I am editing.
Because i called a js function when select a combo, and i obtained the number of row as follows:
So, i solved it as follows:
The JS is NOT an event called from grid events
Thanks in advance!
I want to know what is the right way to get through javascript, the number of row I am editing.
Because i called a js function when select a combo, and i obtained the number of row as follows:
var copyRow = function (combo, comboStore, col)
{
combo.rowEditor.row
..}
<ext:ComboBox>
<Listeners>
<Select Fn="copyRow" />
</Listeners>
</ext:ComboBox>
but when i downloaded the latest version, does not work anymore.So, i solved it as follows:
grid.getSelectionModel().getSelectedCell()[0]; //get cell
It is the correct way??The JS is NOT an event called from grid events
Thanks in advance!
Last edited by Daniil; Sep 10, 2010 at 11:21 AM.
Reason: [CLOSED]