The radgrid has 3 parent tiers before getting to the details. Using a command template I like to create a new detail record by passing parentID. When clicking on add new record, I bring up a radwindow for the user to enter the data in the new record form. The radwind is shown using javascript.
I would like to pass the parent ID from the third tier to the new record form. Unfortunately I can not find the parent id using javascript.
function openConfirmationWindowNEW(sender, args) {
// ... not working getting parentID "progranID"
var myprogramID = $find(Telerik.Web.UI.Grid.GetFirstParentByTagName(sender.get_element().parentNode, "ProgramID").id);
radopen("newrecord.aspx?carID= " + programID , "RadWindow2");
}
I would like to pass the parent ID from the third tier to the new record form. Unfortunately I can not find the parent id using javascript.
function openConfirmationWindowNEW(sender, args) {
// ... not working getting parentID "progranID"
var myprogramID = $find(Telerik.Web.UI.Grid.GetFirstParentByTagName(sender.get_element().parentNode, "ProgramID").id);
radopen("newrecord.aspx?carID= " + programID , "RadWindow2");
}