Hi friends,
How to add (fancy) tooltip on each of webgrid in MVC3.
Thanks in advance...
-
Rakesh
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Parveen SiwachPosted May 28, 2013, 10:43 AM
Html.Raw("" +
item.ModelItem.LongTextColumn.PadRight(25).Substring(0, 25) +
""), canSort: false)
rakesh patilPosted May 28, 2013, 10:07 AM
Thanks for ur answer,
but, I i need it for MVC3
Parveen SiwachPosted May 28, 2013, 9:40 AM
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
for (int colIndex = 0; colIndex < e.Row.Cells.Count; colIndex++)
{
string ttString = "Result of database lookup";
e.Row.Cells[colIndex].Attributes.Add("title", ttString);
}
}