Hello!
I have a grid that adds a little triangle image to cells that contain note information. The triangles are rendering properly and show the correct content when hovering over them but as soon as you begin to scroll the grid the triangles start to appear on other cells that they shouldn't. I have attached some images showing the issue. The first triangle is correct but then the subsequent ones are added when you start to scroll down or minimize the window and then maximize it again. The code I'm using is below and I can't figure out what the problem could be.
Thanks for any help!
private
void
gridOptions_CellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.Column.Name ==
"colText"
)
{
// Add a triangle if the row contains note data.
if
(!
string
.IsNullOrEmpty(OptionRowNotes(tJobOption.fAuditNotes, e.Row))
&& e.CellElement.Children.Count == 0)
{
var image =
new
RadImageItem();
image.Image = Resources.RedTriangle;
image.ToolTipText = OptionRowNotes(tJobOption.fAuditNotes, e.Row);
image.PositionOffset =
new
SizeF(e.CellElement.ColumnInfo.Width - 10, -1);
image.ZIndex = 1;
e.CellElement.Children.Add(image);
}
}
}