Friday, 14 February 2014

Javascript ToolTip


Consider the following link
http://www.menucool.com/tooltip/javascript-tooltip

Download the demo source code.(It contains tooltip.css file and tooltip.js file)

We need to add that two files in solution and Register that file in load page.
In code behind , while rowdatabound event we need to add the  
if (e.Row.Cells[8].Text.Replace(" ", "") != "")
  {
       e.Row.Cells[8].Attributes.Add("onmouseover", "tooltip.pop(this,'" + e.Row.Cells[8].Text + "')");
   }
else
  {
       e.Row.Cells[8].Attributes.Remove("onmouseover");
   }
  


it will available in downloaded file.


No comments:

Post a Comment