Hi,
I am having a problem with adding new child records. The problem is linking these child records to their parent. I am binding my whd to a generic list of objects, each of which may have child objects.
In the child object, I have a property called ParentID, which allows me to link exisitng child rows/objects to the parent rows/objects. However, the property is empty for new rows. I cant think of anything I can utilize in the row_adding event for the child row.
Sorry never mind David, it worked! thanks much!
Hi David,
I included the script that you posted but I get the following javascript error: "'grid' is undefined" when I tried debudding it.
I put in the funtion on on my markup and here's where I am calling it:
If you have your bands defined at design time, simply define the row adding behavior in the child band and set editing core rowAdding client event to the handler. You could also attach it to the grid view's behavior if you have it there with inheritance, but be sure to not use the parent row if it is null.
-Dave
David,
Sorry, how do I wire up the javascript to the grid? Or which one, to be more specific.
Yes, Dave, you are right. Let me give this a try and will get back to you. Thanks much!
Marshal