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

Edit mode in Telerik Rad Grid

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JD
Top achievements
Rank 1
JD asked on 27 Feb 2012, 04:48 AM
Hello,

I have a Rag Grid in which I have the Edit mode generated automatically as true...I want to hide the edit link for some users...can someone please tell me how can i do it programatically ..ie disable the edit link programatically.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 27 Feb 2012, 05:08 AM
Hello,

Try the following code.
C#:
protected void grid_PreRender(object sender, EventArgs e)
{
 if(condition)
 {
  grid.MasterTableView.GetColumn("AutoGeneratedEditColumn").Visible = false;
 }
}

-Shinu.
0
JD
Top achievements
Rank 1
answered on 27 Feb 2012, 05:19 AM
Perfect..Thank you and I love the rapid response of the telerik team.
Tags
Grid
Asked by
JD
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
JD
Top achievements
Rank 1
Share this question
or