Put Cell into Edit Mode

2 posts, 0 answers
  1. Brian
    Brian avatar
    58 posts
    Member since:
    Jul 2011

    Posted 06 Oct 2011 Link to this post

    Is there a way to automatically or programmatically put a cell into edit mode without needing to click, etc. on the cell?

    I have a RadGridView with three columns, two with text, and a third with an Edit button.  I would like the text to be read-only until the edit button is clicked, in which case the 2nd text column becomes editable.  So far, I think I can do this, but I would like to make it obvious to the user that the 2nd text column is editable after they have clicked the Edit button.  It seems like the cell only goes into edit mode when directly clicked on.  Is there a way that I can force it into "edit" mode?
  2. Maya
    Maya avatar
    4062 posts

    Posted 07 Oct 2011 Link to this post

    Hi Brian,

    You could try something like follows:

    private void RadButton_Click(object sender, RoutedEventArgs e)
                this.clubsGrid.Columns[0].IsReadOnly = false;
                this.clubsGrid.CurrentColumn = this.clubsGrid.Columns[0];

    However, if you want to return the read-only state of the column, you need to handle CellEditEnded event for example and change the IsReadOnly property of that column back to "True".

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top