This is a migrated thread and some comments may be shown as answers.

Grid row index in onkeypress

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Remya
Top achievements
Rank 1
Remya asked on 15 Mar 2012, 12:39 PM
Hi,

I want to get the index of the selected row in onkeypress event.

Help me
Thnx in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Mar 2012, 01:18 PM
Hello,

Try the following javascript.
JS:
function OnKeyPress(sender, args)
{
  alert(sender.get_masterTableView().get_selectedItems()[0]._itemIndexHierarchical);
}

Thanks,
Princy.
0
Remya
Top achievements
Rank 1
answered on 16 Mar 2012, 01:07 PM
Thnx for the reply. :)
Tags
Grid
Asked by
Remya
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Remya
Top achievements
Rank 1
Share this question
or