This question is locked. New answers and comments are not allowed.
Hello,
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!
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!
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Employee"
EditTriggers
=
"CellClick"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding Name}"
Margin
=
"20,-1,10,2"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>