:: Forum >>

How to get the number of the selected row? (grid v2.0b4)

Hi,

How do I get the number of the selected row? I want to use this row number in another function: the tabs-function. Besides that I want to deselect the selected row when I select another tab. Can you help me please? Thanks in advance!

Laurens
Laurens
Wednesday, February 1, 2006
Try sthg like

obj.setSelectedRows([0,2]);
var selectedLine = obj.getSelectedRows();
alert(selectedLine[0]); //Will output '0'
alert(selectedLine[1]); //Will output '2'
grangreg
Wednesday, February 1, 2006
Thanks a lot! It works!
Laurens
Wednesday, February 1, 2006
course it works!
grangreg
Thursday, February 2, 2006

This topic is archived.


Back to support forum

Forum search