This is a migrated thread and some comments may be shown as answers.

ALT-text for command column with image?

1 Answer 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
andi
Top achievements
Rank 1
andi asked on 28 Mar 2008, 06:01 PM
hi!

i've got a command cell with an image inside. is it possible to make somthing like a html "alt-text" appear on mouseOver?

thanks,

andreas

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 31 Mar 2008, 10:57 AM
Hello andi,

Thank you for the question.

To set a tool tip text for a command cell element, just set the ToolTipText property of the RadButtonElement contained inside the GridCommandCellElement. Refer to the code snippet below:

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) 
    if (e.CellElement is GridCommandCellElement) 
    { 
        RadButtonElement button = (RadButtonElement)e.CellElement.Children[0]; 
        button.ToolTipText = "alt. text"
    } 

I hope this helps. Please, contact me again, if I can help you further.

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
andi
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or