Hi
I have a problem I can't seem to work out.
Basically I have a MasterTableView / DetailTable relationship. In the master table I am changing the checkbox to an image at the ItemDataBound event - this works fine.
However, when I expand the DetailView the images are removed and the checkboxes re-appear (coincidentially they are always unchecked).
Does anyone know how I should handle this situation so that when the details view is expanded the tick box images remain in the parent MasterTableView?
Many thanks
Carl
I have a problem I can't seem to work out.
Basically I have a MasterTableView / DetailTable relationship. In the master table I am changing the checkbox to an image at the ItemDataBound event - this works fine.
However, when I expand the DetailView the images are removed and the checkboxes re-appear (coincidentially they are always unchecked).
Does anyone know how I should handle this situation so that when the details view is expanded the tick box images remain in the parent MasterTableView?
Many thanks
Carl
protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; var row = item.DataItem as Reporting.EntityModel.Stock; if (row != null) { item["Active"].Controls.Clear(); if (row.Active == true) { item["Active"].Controls.Add(new Image() { ImageUrl = "/Assets/Images/tick_small_col.png" }); } else { item["Active"].Controls.Add(new Image() { ImageUrl = "/Assets/Images/cross_small_col.png" }); } } } }