This is a migrated thread and some comments may be shown as answers.
can I have a radgrid with only refresh command?
1 Answer 51 Views
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 21 May 2009, 12:51 AM
I have a radgrid , can I have it to show only the refresh grid icon (functionality) without the add new line functionality, If so can someone please provide me an example ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 21 May 2009, 03:47 AM
Hello Neeraj,

You can try out the following code to hide the AddNewRecord button from the command row:
c#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
    {   
        if (e.Item is GridCommandItem)  
        {  
            GridCommandItem cmdItem = (GridCommandItem)e.Item;           
            Button btn1 = (Button)cmdItem.FindControl("AddNewRecordButton");  
            btn1.Visible = false;              
            LinkButton lnkbtn1 = (LinkButton)cmdItem.FindControl("InitInsertButton");  
            lnkbtn1.Visible = false;  
        }  
   } 

Thanks
Princy.
Tags
Grid
Asked by
Neeraj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or