Hi there,
In the older version of the RadGrid I was able to use this code below to Disable or Enable the commandItems inside a Nested Grid. This doesn't seem to work in the new RadGrid. I am calling this during the Grid's Prerender and it throws an error of "Index was outside the Bounds of the array."
Could this be because on preRender the Child Items are not expanded?
Thanks.
In the older version of the RadGrid I was able to use this code below to Disable or Enable the commandItems inside a Nested Grid. This doesn't seem to work in the new RadGrid. I am calling this during the Grid's Prerender and it throws an error of "Index was outside the Bounds of the array."
Could this be because on preRender the Child Items are not expanded?
foreach (GridDataItem masterItem in policyGrid.MasterTableView.Items) |
{ |
if (masterItem.HasChildItems) |
{ |
GridCommandItem commandItem = (GridCommandItem)masterItem.ChildItem.NestedTableViews[0].GetItems(GridItemType.CommandItem)[0]; |
commandItem.Enabled = blnEditable; |
} |
} |
Thanks.