• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5515
  • Last Modified:

ASP.NET - Telerik RadGrid get selected row ID on client

I'm working with the Telerik RadGrid control.  AllowMultiRowSelection is set to true.  I've got a javascript method that is run when a client side event is fired and in this method I need to retrieve the row id for each of the selected rows in the radgrid.  The Telerik documentation seems less than helpful.

Is anyone familiar with Telerik enough to help me through this issue?

Thanks,
0
JosephEricDavis
Asked:
JosephEricDavis
  • 3
1 Solution
 
HainKurtSr. System AnalystCommented:
I guess you should get this file and start reading

http://www.telerik.com/documents/RadControlsForASP.NET.AJAX.zip
0
 
HainKurtSr. System AnalystCommented:
0
 
HainKurtSr. System AnalystCommented:
get_selectedItems()

Controls > RadGrid > Client-side API Reference > RadGrid > Properties > get_selectedItems()

Property which returns an array of the grid rows selected on the client (and all sub levels in hierarchical grid structure).

function getGridSelectedItems()
{
  var grid= $find("<%= RadGrid1.ClientID %>")
  var gridSelectedItems = grid.get_selectedItems();
}
0
 
JosephEricDavisAuthor Commented:
Cool, I got it figured out.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now