Change entire row from button click?

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    12 posts
    Member since:
    Sep 2012

    Posted 30 Nov 2011 Link to this post


        I trying to accomplish the task of allowing in-line editing for an entire row based off a button click. Basically, I have started implementing a grid that changes style/state of a particular cell if the user selects that given cell. For example, the code below illustrates a text box that changes to become editable if the user clicks the cell. It switches between the CellTemplate and CellEditTemplate. However, I have multiple columns and want ALL the cells in a given row to become editable based off a button click. I was wondering what the best way of doing this was... For the user to click a button in a row, and for that specific row to then become entirely editable. Take a look, thanks!

                                  Text="{Binding Name}"/>
                           Text="{Binding Name}"
  2. Ivan Ivanov
    Ivan Ivanov avatar
    1216 posts

    Posted 05 Dec 2011 Link to this post

    Hi Jeff,

    Would you please shed some more light on your scenario? What do you mean by mentioning: "...for that specific row to then become entirely editable."? However, I have prepared an example project for you that illustrates a possible approach for editing a row based on a button click. Alternatively you might try using the RadGridViewCommands.BeginEdit command, but as it does not support passing a specific data item as a parameter, it would be much more appropriate when used on a button that is outside the RadGridView.

    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top