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

3 posts, 0 answers
  1. Marc
    Marc avatar
    88 posts
    Member since:
    Jul 2011

    Posted 19 Mar 2012 Link to this post

    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,
  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 19 Mar 2012 Link to this post

    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.

    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 >>
  3. Bharat
    Bharat avatar
    4 posts
    Member since:
    May 2012

    Posted 07 Jun 2012 Link to this post

    I cannot understand what you are trying to say. Can you please explain your Hack in more detailed approach.
Back to Top