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

Prevent row from shrinking when entering edit mode on a cell

1 Answer 136 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 23 Sep 2011, 11:53 PM
I have some cells that contain a lot of text content, and they have a set width, so the content gets split into multiple lines, which is what I want. However, when I click on one of these cells to edit it, the row height shrinks down to "single-line" height, so you have to scroll through all the cell text to get to the place you want to edit. Is there an easy way to prevent that from happening? I could calculate the desired height based on the length of the text and the width of the cell and then set it in the PreparedCellForEdit handler, but that seems like a very hackish solution.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 27 Sep 2011, 09:03 AM
Hello Nick,

You can use the CellEditTemplate of the column and place a  TextBox with fixed height in the cell.
Let me know in case you need details on this approach.
Also if not applicable , we can think of another workaround .

All the best,
Pavel Pavlov
the Telerik team

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

Tags
GridView
Asked by
Nick
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or