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

radgrid export icons

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 12 Jul 2013, 02:11 PM
Hello,
I have to export data from a RadGrid to Excel, but I want to hide the other icons, but I can not hide the separator, as I can do?

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

if (e.Item is GridCommandItem)

{

GridCommandItem cmditm = (GridCommandItem)e.Item;

//to hide AddNewRecord button

cmditm.FindControl("InitInsertButton").Visible = false;//hide the text

cmditm.FindControl("AddNewRecordButton").Visible = false;//hide the image

//to hide Refresh button

cmditm.FindControl("RefreshButton").Visible = false;//hide the text

cmditm.FindControl("RebindGridButton").Visible = false;//hide the image

// cmditm.FindControl("Separator").Visible = false;





thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jul 2013, 07:06 AM
Hi David,

Please try setting the following CSS class for your Grid.

CSS:
.RadGrid_SkinName .rgCommandRow
{
   color: Transparent !important;
}

Thanks
Shinu
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or