Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Inserting parent cell data into a cell of the child (insert) row
posted

So here is my dilemna,  I've got a value in my parent object that I need put into the insert row of a new child row. 

here is what I mean

My parent has an ParentID and AttributeValue

My child has an ChildID and an AttributeValue

Obviously they are tied to each other by the AttributeValue.

What I need to do is insert this value into the AttributeValue cell of the new row as the user starts inserting data.  I don't want them to have the option of putting this value in.

So far I've learned how to insert data through javascript when the user double clicks to add new data but I can't get to the right column.

Here is my javascript

function

InsertAttributeKey(webDataGrid, evntArgs) {

evntArgs._text =

"test";

}

What I need is the opened parentRow.items['AttributeValue']  and place it into current row.items['AttributeValue'].

Obviously this is bogus code but hopefully it'll explain what I'm trying to get at.

Any help would be appreciated.

Parents
No Data
Reply
  • 345
    posted

    i need the answer to this as this seems to be a very common business scenario. Infragistics please help!

Children
No Data