Say I want to have a column within my grid that displays a checkbox as in this example. This grid is a child of a parent grid.
When I click the checkbox, I want to call a javascript function that not only updates a few fields of the row that the checkbox is on, but the parent row as well.
Using Kendo UI MVC 2015 (yes I know its dated)
So, looking at this example:
https://docs.telerik.com/aspnet-mvc/helpers/grid/faq#how-to-display-checkboxes-in-ajax-bound-grids
How then, could I call a javascript function that passes a reference to the row that contains the checkbox, which then is used to get a reference to the parent of that row? If I can get a reference to the row of the checkbox, then I can do something like this:
var row = e.Row.Parent as GridViewRowInfo;
if (row != null)
{
row.Cells["Cost"].Value = (int)row.Cells["Cost"].Value +
newChildCost - oldChildCost;
}