I'm wondering if someone could help me out. I have a RadGridView set up that displays row tooltips with error/warning information. The tooltips work just fine initially, but once the user changes anything in the row the tooltip disappears for some reason. I followed the example in the documentation to add tooltips to the rows, and there is nowhere else in the code where I am doing anything with tooltips. There must be something I am missing. I have confirmed it has nothing to do with my data because the same thing happens with tooltips that contain nothing but a constant string literal.
I'm using Telerik Controls for Silverlight 4, version 2010.1.702.1040. Any help or insight you could provide would be much appreciated.
I'm using Telerik Controls for Silverlight 4, version 2010.1.702.1040. Any help or insight you could provide would be much appreciated.
void
BaseDataGrid_RowLoaded(
object
sender, RowLoadedEventArgs e)
{
if
(!(e.Row
is
GridViewNewRow) && !(e.Row
is
GridViewHeaderRow))
{
Binding rowBgBind =
new
Binding(
"StoredErrors"
);
rowBgBind.Mode = BindingMode.OneWay;
rowBgBind.Converter =
new
RowColorErrorConverter();
e.Row.SetBinding(GridViewRowItem.BackgroundProperty, rowBgBind);
ToolTip toolTip =
new
ToolTip()
{
Content = e.Row.DataContext,
ContentTemplate = (DataTemplate)BaseDataGrid.Resources[
"RowToolTip"
]
};
ToolTipService.SetToolTip(e.Row, toolTip);
foreach
(var cell
in
e.Row.Cells)
{
Binding cellBgBind =
new
Binding(
"StoredErrors"
);
cellBgBind.Mode = BindingMode.OneWay;
cellBgBind.Converter =
new
CellColorErrorConverter();
cellBgBind.ConverterParameter = cell.Column.UniqueName;
cell.SetBinding(GridViewCellBase.ForegroundProperty, cellBgBind);
}
}
}