Hi,
I am struggling with how to pass a context variable to the insert logic in a user control edit form when Add a new Row is selected in a grid. The example I'm modelling this after is here:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
However on the DataBinding event of the user control for GridInsertionObject, I need to get one variable from the parent form, which is the ID of a row in a related table, which is required on insert to tie the inserted row to its parent. I've tried the mechanism here:
http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html
but that doesn't work. In the end, I store the ID I need in a session variable, but I'm not happy with that approach. Is there a simple way to do what I need to do?
Thanks, Steve
I am struggling with how to pass a context variable to the insert logic in a user control edit form when Add a new Row is selected in a grid. The example I'm modelling this after is here:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
However on the DataBinding event of the user control for GridInsertionObject, I need to get one variable from the parent form, which is the ID of a row in a related table, which is required on insert to tie the inserted row to its parent. I've tried the mechanism here:
http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html
but that doesn't work. In the end, I store the ID I need in a session variable, but I'm not happy with that approach. Is there a simple way to do what I need to do?
Thanks, Steve