Bug Report T958665
Visible to All Users

DataGrid - A column is unexpectedly resized to its minWidth during window resizing

created 4 years ago

Hello,

I am trying the use the width and minWidth attributes of a datagrid column and I am confused by the behaviour I am observing.
See this example on codepen: https://codepen.io/dominic-simplan/pen/zYKwawY

The first column has width: 40% and minWidth: 200px.
As long as the window is wide enough, it looks correct. However, if I resize the browsers width (making it smaller), at some point the width of the first column jumps to 200, even though the 40% would be bigger:

Clipboard-File-1.png

In this screenshot, the first column should be bigger than 200px, because 40% of the remaining width is more than 200px.

What is causing this behaviour?

My use case is the following: I need a few columns with fixed width. All the other columns should share the remaining space with a certain ratio (e.g. 60/40) but be at least 200px wide.

Comments (1)
DevExpress Support Team 4 years ago

    Hi Dominic,
    I reproduced the issue and forwarded this ticket to our team for further research. We will let you know once we have any news.

    Answers approved by DevExpress Support

    created 4 years ago

    We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

    Note: Hotfixes may be unavailable for betas/updates set for release within a week.

      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.