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

tooltip on the selected row

2 Answers 157 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ashok
Top achievements
Rank 1
ashok asked on 06 Mar 2008, 10:31 PM
How can i add a tooltip on the selected row

I wan to show first coloum text on the tooltip of selected row

is there any direct propery to set the tooltiip or some alternate solution
please let me know

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 07 Mar 2008, 11:47 AM
Hello ashok,

Thank you for contacting us.

You can add a tooltip to any row by handling the RowFormatting event. Refer to the code snippet below:

void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e) 
    if (e.RowElement.IsCurrent) 
    { 
        foreach (GridCellElement cell in e.RowElement.Children) 
        { 
            cell.ToolTipText = e.RowElement.RowInfo.Cells[0].Value.ToString(); 
        } 
    } 
    else 
    { 
        foreach (GridCellElement cell in e.RowElement.Children) 
        { 
            cell.ToolTipText = ""
        } 
    } 

I hope this helps. Let me know, if you have other questions.

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ashok
Top achievements
Rank 1
answered on 10 Mar 2008, 02:31 PM
Thank you very much

This is exactly what what i want
Tags
GridView
Asked by
ashok
Top achievements
Rank 1
Answers by
Jack
Telerik team
ashok
Top achievements
Rank 1
Share this question
or