I am trying to iterate through selected items in a radgrid (using client side selection) and to retrieve the value of the DataKeyNames (in this case ItemID) and to add that to a string using a semicolon as a seperator for each ItemID.
How can I achieve this?
Regards
Roel
2 Answers, 1 is accepted
0
Petja
Telerik team
answered on 21 Jan 2008, 01:14 PM
Hi Roel,
Here is a sample code you can achieve the desired functionality with:
<script type="text/javascript">
function Click()
{
var grid = $find("<%=RadGrid1.ClientID %>");
var selectedUniqueNames = "";
var gridSelectedItems = grid.get_masterTableView().get_selectedItems();