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

grid._selectedIndexes not working in mozilla

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 05 Aug 2008, 09:35 AM
Hi,

I am using radgrid where I have given ClientSideEvent-onrowclick="rowclick".

In the function rowclick(row)

I'm using the code row._selectedIndexes[0] to get the row clicked.

In IE it is working fine giving the exact value each time but in mozilla it is not giving the exact values. It is somewhat coming as the row clicked before the current row, though I'm not sure.

Can anyone give me any suggestions of how to do it?


Thanks,
Avik

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 05 Aug 2008, 11:27 AM
Hi Avik,

You can get RadGrid's client object in the click event handler and retrieve the selected indexes collection:

var selectedIndexes = $find('<%= RadGrid1.ClientID %>')._selectedIndexes; 


or the selected items collection through the MasterTableView client object:

var selectedItems = $find('<%= RadGrid1.ClientID %>').get_masterTableView().get_selectedItems(); 

Please see if these work at your site.

Best wishes,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Avik
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or