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

Is it possible to access the tr element in a RadGrid by class name

1 Answer 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 17 May 2011, 03:01 PM
Hi

What I specifically want to do is access the parent element of a grid row, specifically the the tbody element.

I am attempting to do this with the following JQuery snipet inside a RadScriptBlock

var

 

 

gridRowParent = $(".rgRow").parent;

Is this even possible.

Next I want to get the height of the gridRowParent.

Any pointers greatly appreciated.

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 19 May 2011, 03:52 PM
Hello Tim,

Thank you for contacting us.

When are you trying to access the <tr> and its parent? If it is in a grid client event, you can use:
$telerik.$(sender.get_element()).find('.rgRow').parent().height()
  
//sender.get_element() is the grid DOM object

Let me know if it helps.

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or