Ticket S19626
Visible to All Users
Duplicate

Adjust the editor's height on-the-fly when typing in the multi-line in-place editor

created 17 years ago

What I've always wanted in the QGrid, and was disappointed to see still hadn't been implemented in QGrid6, is automatically expanding edit cells similar to Excel.

For example, if I have a cell on a grid which contains a multi-line block of text in a grid with auto row height enabled then, when the user does an in-place edit of this text, the height of the cell (and indeed the entire row) stays fixed and the text scrolls as necessary.
So, if the existing text took up three lines and more text was added, then when it wrapped onto a fourth line, the text would scroll and the first line would disappear off the top of the edit box.
Once the edit was completed, the grid would resize the height of the row to accomodate as many lines as were needed.

Now this isn't too much of a problem when there are already a few lines present but, when there's only a single line to start with, then as soon as enough text is added to wrap onto a second line, the first line disappears and the user is left with a blank edit field again. This continues for each new line until the end is complete, only then does all the text become visible. This "loss of context" when typing a lot of text can be very disconcerting as, with each line break, you're unable to see what you've typed to that point.

Contrast this with the way Excel does things. In Excel, the edit box itself automatically expands downwards to accomodate the new line, overlaying on top of whatever cells/rows are below it in the grid. When the edit is complete, the row resizes to "match" the height of the edit box.

Can such a feature be added to a future release of the QGrid please? Alternatively, is there any way to achieve such an effect with the current version of the grid?

Many thanks,
Toby.

Show previous comments (6)
DevExpress Support Team 12 years ago

    Hello,
    Yes, this article is private because it is outdated. Please refer to the In-place Editor auto-size - Add the ability to automatically adjust the Grid cell's height while entering input into the active editor ticket for the information.
    I have updated the wrong link in comments.

    VU VU
    Vladimir Ulchenko 12 years ago

      I've seen it. see my comment in Q435104. EditAutoHeight help topic doesn't say that you need to hit Enter in order to automatically resize editor height when you edit previously entered value as demonstrated by your own sample there

      DevExpress Support Team 12 years ago

        Hello Vladimir,
        This behavior is by design. The editor is resized only when editing.

        Answers approved by DevExpress Support

        created 15 years ago (modified 12 years ago)

        Hi.
        I think you all, who are tracking this report, will be happy to know that our developers have found a way to implement this functionality in the best possible manner. The entire row height will be adjusted on-the-fly when typing in the active multi-line editor. We still need to perform additional tests to ensure that this functionality won't lead to side-effects. However, first results look encouraging. So, I believe this feature will be available in ExpressQuantumGrid v7.
        Please refer to report In-place Editor auto-size - Add the ability to automatically adjust the Grid cell's height while entering input into the active editor for further details.
        Thanks,
        Serge

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.