Bug Report T953436
Visible to All Users

DataGrid - A checkbox inside the "select" column intersects column borders when a column has a small width

created 4 years ago

Hi,

We've noticed a bug in the latest release in relation to the columns display in data grid table. When a boolean type column's width is set to 0, instead of not showing in the grid table as previous version does, the checkboxes icons are still shown.

Please see the modified Demo sandbox project:
https://codesandbox.io/s/column-customization-devextreme-data-grid-forked-rvpk2

I've added a column 'Overseas' of boolean type, and set its width to 0, along with it, I've set its neighboring column of string type 'Position' to have 0 width as well. After rendering, 'Postion' is 'hidden' properly, while, checkboxes are still shown for 'Overseas'.

(the reason to set the width to 0 instead of set the column to not displayable, is that we can still get the cell information for the column when we pass the row information back to the server for example. We use this method in many screens we have in our project).

Kind regards,

Joseph

Comments (2)
DevExpress Support Team 4 years ago

    Hi Joseph,

    Thank you for the sample. I've passed this case to our developers for research. We will update this ticket as soon as we have any news. In the meantime, I suggest that you use onRowUpdating handler as we suggested here: dxDataGrid passes only modified values to the CustomStore.update method. Then, set the column's visible option to false. Using this solution, you can access all of a row's data regardless of the column configuration.

    Regards,
    Luis

      great, thanks for that Luis.

      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.