Solved

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

Posted on 2010-11-22
4
5,178 Views
Last Modified: 2012-05-10
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
Comment
Question by:JosephEricDavis
  • 3
4 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 34191853
I guess you should get this file and start reading

http://www.telerik.com/documents/RadControlsForASP.NET.AJAX.zip
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34191855
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34191885
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
 
LVL 7

Author Comment

by:JosephEricDavis
ID: 34192342
Cool, I got it figured out.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now