Devextreme-reactive: Exception is thrown on removing a column when column bands is used and the last column is aligned to the right

Created on 9 Apr 2020  路  4Comments  路  Source: DevExpress/devextreme-reactive

  • [x] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [x] React Grid
  • [ ] React Chart
  • [ ] React Scheduler

Current Behaviour


Grid crash - unhandled error

Uncaught TypeError: Cannot read property '0' of undefined
    at getBandComponent

Expected Behaviour


Column should be removed without any error.

Steps to Reproduce

Click on the button:
https://codesandbox.io/s/devextreme-react-grid-for-bootstrap-4-x6jrx

This is the minimal setup, I've set the width to force some columns to be invisible (children of the group). Also fixed column on the right side is required to reproduce it.

Screenshots

image

Environment

  • devextreme-reactive: 2.4.0 / 2.6.0
  • react: 16.x
  • browser: Chrome / Firefox
  • bootstrap: 4.x
  • react-bootstrap: none
  • material-ui: none
Grid bug

All 4 comments

Hi @karczk ,

Thank you for reporting this issue. I've reproduced it and we'll fix it soon.

@ushkal Not sure if it will be of any use, but I've come accross a scenario where this occurs without aligning any columns. Using this sandbox, if any banded column is hidden first it will product the same error.

Hi @mwoody1,

Thank you for your participation! It will help us to fix the problem.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SferaDev picture SferaDev  路  3Comments

franklixuefei picture franklixuefei  路  3Comments

glenpadua picture glenpadua  路  3Comments

stclairdaniel picture stclairdaniel  路  3Comments

sintuchintu picture sintuchintu  路  3Comments