Hi,
I would like to add tooltips to textboxes when I click in a cell inside RadGridView. I subscribed to the RadGridView.CellFormatting event and did the following, but it doesn't seem to work:
private void rgvEditor_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement.ChildrenHierarchy.Count > 0)
{
foreach (RadElement element in e.CellElement.ChildrenHierarchy)
{
if (element is RadTextBoxItem)
{
RadTextBoxItem textBoxItem = (RadTextBoxItem)element;
textBoxItem.TextAlign = HorizontalAlignment.Center;
textBoxItem.AutoToolTip = true;
textBoxItem.ToolTipText = "hello";
}
}
}
Can you help me?
Thanks,
Tamás
I would like to add tooltips to textboxes when I click in a cell inside RadGridView. I subscribed to the RadGridView.CellFormatting event and did the following, but it doesn't seem to work:
private void rgvEditor_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement.ChildrenHierarchy.Count > 0)
{
foreach (RadElement element in e.CellElement.ChildrenHierarchy)
{
if (element is RadTextBoxItem)
{
RadTextBoxItem textBoxItem = (RadTextBoxItem)element;
textBoxItem.TextAlign = HorizontalAlignment.Center;
textBoxItem.AutoToolTip = true;
textBoxItem.ToolTipText = "hello";
}
}
}
Can you help me?
Thanks,
Tamás