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

Edit mode for entire row (all cells in a row at once)

2 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc
Top achievements
Rank 1
Marc asked on 19 Mar 2012, 06:59 AM
Per default RadGridView shows the cell edit element only for the currently edited cell. But I need all cells in the currently edited row to show their edit element at the same time. In other words, I need to switch into edit mode for an entire row, not a single cell.

How can I achieve this?

As a side note: Since I need to create view and edit elements dynamically I currently inherit from GridViewBoundColumnBase and override CreateCellElement and CreateCellEditElement. Anything else I can do here to make the above working? Or maybe I have to inherit from RadGridView and genereate custom row containers which help me here?

Thank you,
Stephan

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 19 Mar 2012, 01:02 PM
Hello Stephan,

This is not supported by RadGridView as only one cell may have the focus , be in edit mode and trigger the editing events as described in the docs.

A descent hack would be to replace the TextBoxes with TextBlocks in the cell template. This means to use the CellTemplate property of the column and assign it to a data template containing a TextBox bound to the relevant property of your business object two way.

In case you decide to go that direction  let me know so I can assist you further.

Greetings,
Pavel Pavlov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Bharat
Top achievements
Rank 1
answered on 07 Jun 2012, 07:16 AM
I cannot understand what you are trying to say. Can you please explain your Hack in more detailed approach.
Tags
GridView
Asked by
Marc
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Bharat
Top achievements
Rank 1
Share this question
or