ferr
4 Oct 2007, 11:38 AM
I'm reading through the YAHOO.ext.grid.Grid manual and can only get some of the functions to work. Functions such as grid.getSelectedRowId return this error in Firebug:
grid.getSelectedRowId is not a function
What is the deal? I am trying to make a few function calls such as that in the grid.on celldblclick event handler.
grid.on('celldblclick', function(grid, rowIndex, columnIndex, e)
{
var selectedRow = ds.getAt(rowIndex).id;
var selectedCol = ds.getAt(columnIndex).id;
//Ext.MessageBox.alert('Double Clicked', 'Row: ' + rowIndex + ', Col: ' + columnIndex);
var itemId = grid.getSelectedRowId();
alert(itemId);
if(columnIndex == 0)
{
}
});
grid.getSelectedRowId is not a function
What is the deal? I am trying to make a few function calls such as that in the grid.on celldblclick event handler.
grid.on('celldblclick', function(grid, rowIndex, columnIndex, e)
{
var selectedRow = ds.getAt(rowIndex).id;
var selectedCol = ds.getAt(columnIndex).id;
//Ext.MessageBox.alert('Double Clicked', 'Row: ' + rowIndex + ', Col: ' + columnIndex);
var itemId = grid.getSelectedRowId();
alert(itemId);
if(columnIndex == 0)
{
}
});