Allow edit mode for some and denied for other

4 posts, 0 answers
  1. Mohamed El-Sayed
    Mohamed El-Sayed avatar
    33 posts
    Member since:
    Apr 2009

    Posted 25 Apr 2013 Link to this post

    i want to control who can make edit by :

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

    how can i make it
  2. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 25 Apr 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mohamed El-Sayed
    Mohamed El-Sayed avatar
    33 posts
    Member since:
    Apr 2009

    Posted 25 Apr 2013 Link to this post

    Thx  Marianne

    i used this  :

     RadGrid1.MasterTableView.GetColumn("EditCommandColumn").Visible = false;
  5. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 30 Apr 2013 Link to this post

    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
Back to Top