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

[Solved] Retrieving Item's HierarchicalIndex in a grid

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 24 Dec 2009, 07:17 AM
Hi,

I am having a RadDatePicker control inside a hierarchical rad grid. I have OnDateSelected event for this control as,

 


function
dtpLastEventDate_OnDateSelected(sender, eventArgs)

 

{

}

I want to retrieve the grid's hierarchical index of that particular row in the OnDateSelected event of RadDatePicker control. Is there any possible way to retrieve it using java script. Please share with me.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Dec 2009, 01:36 PM
Hello Meenakshi,

Try the following approach:
function dateSelected(sender, args)
{
    var cell = sender.get_element().parentNode.parentNode;
    var itemIndex = cell.parentNode.id.split("__")[1];
}

I hope this helps.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or