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

Allow edit mode for some and denied for other

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohamed El-Sayed
Top achievements
Rank 1
Mohamed El-Sayed asked on 25 Apr 2013, 03:49 PM
i want to control who can make edit by :

 if (Label13.Text == "Normal User")
                {
                    xxxx
                 }  

how can i make it

3 Answers, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 25 Apr 2013, 06:25 PM
on the ItemDataBound event, hide the edit button for those users not eligible for editing
make sure to put the label into the AjaxManager with the grid
0
Mohamed El-Sayed
Top achievements
Rank 1
answered on 25 Apr 2013, 08:49 PM
Thx  Marianne

i used this  :

 RadGrid1.MasterTableView.GetColumn("EditCommandColumn").Visible = false;
0
Elliott
Top achievements
Rank 2
answered on 30 Apr 2013, 01:04 PM
if the value you are looking at is not from the data in the grid itself you might try moving your logic into the ItemCreated event handlet instead

I admit - when I need to make changes to command items I do so by expliciitly indexing into the cell
Tags
Grid
Asked by
Mohamed El-Sayed
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
Mohamed El-Sayed
Top achievements
Rank 1
Share this question
or