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

[Solved] Hide Refresh button on CommandItemDisplay

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 18 Feb 2010, 12:35 AM
Anybody know how to hide the refresh button so that user only sees the add new button?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Feb 2010, 05:06 AM
Hello,

The code snippet shown below will help you in hiding the Refresh button in CommandItem.

C#:
 
    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridCommandItem) 
            e.Item.FindControl("RefreshButton").Parent.Visible = false
    } 

-Shinu.
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or