Ticket T202601
Visible to All Users
Duplicate

A RichEditControl is not sized property in a LayoutControl

created 10 years ago

[DevExpress Support Team: CLONED FROM Q257530: Add the capability to resize control based on own content size]
The auto sizing feature of the RichEdit control works fine but it seems to be very buggy when used in combination with different  LayoutControl situations. Let's say we'd like to create a messaging module. On top we have a grid (or banded grid or something different) that shows existing messages. At the bottom I'd like to put a auto-sizing RichEdit control to reply to the current conversation.
You can see a screenshot attached where I have modified your example in this way. The LayoutControl does not adapt to the RichEdit control's changed size + When adding text into the RichEdit control it grows beyond the window border at the bottom.

Answers approved by DevExpress Support

created 10 years ago

Hi,

In your screenshot, I see that you set the RichEditControl.ActiveViewType property to Simple View, specified the AutoSizeMode property and placed RichEditControl into LayoutControl. Please correct me if I missed something.

A LayoutControl does not provide the built-in mechanism to resize a layout group to fit the autosized RichEditControl at the moment. We already have an inquiry to support this scenario: Provide the capability to change the RichEditControl size automatically based on its content when the control is located in LayoutControl

In the meantime, you can utilize a workaround from the How to auto size layout items with RichEditControl in LayoutControl thread.

I hope this information helps. Should you have difficulties while implementing this workaround, create a separate thread and describe the issue you faced in detail. We will do our best to help you.

    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.