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

export buttons with my customised tooltip

1 Answer 3 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 15 May 2014, 12:45 PM
Hi,
 how to have export buttons with my customised tooltip?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 15 May 2014, 12:50 PM
Hi Ryann,

You can access the Export buttons in the ItemDataBound event and set its tooltip property as shown below:

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridCommandItem)
  {
   GridCommandItem cmdItem = (GridCommandItem)e.Item;
   Button btnExcel = (Button)cmdItem.FindControl("ExportToExcelButton");
   btnExcel.ToolTip = "Excel ToolTip";
   Button btnPdf = (Button)cmdItem.FindControl("ExportToPdfButton");
   btnPdf.ToolTip = "PDF ToolTip"
  }
}

Thanks,
Princy
Tags
Grid
Asked by
Ryann
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or