ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

UI-Grid does not refresh the celltemplate after updating columndefs and calling gridapi.core.refresh

Open desean1625 opened this issue 5 years ago • 4 comments

https://codepen.io/desean1625/pen/XGJVJQ create column defs with celltemplate remove a column from data and columndefs refresh grid

celltemplate stays applied to the original cell and doesn't follow the new columndef

  • [x] This is a bug report, not a question on how to use the grid.
    Use Stack Overflow or Gitter for questions.
  • [x] You have searched the open issues to see if this bug has been filed before. We don't want duplicate issues.
  • [x] You have reviewed the tutorials and documentation to ensure you are using the grid correctly. ui-grid.info
  • [x] You are using the latest version of the grid. Older versions are not patched or supported.
  • [x] You have provided steps to recreate your bug. A plunkr is even better. https://codepen.io/desean1625/pen/XGJVJQ

desean1625 avatar Feb 26 '19 19:02 desean1625

Workaround is ng-if on parent container to remove ui-grid completely, then after digest cycle add ui-grid back in.

desean1625 avatar Feb 26 '19 19:02 desean1625

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '19 20:04 stale[bot]

Have the same problem, i change column width and cellTemplate in columnDefs manually, then refresh grid with gridApi.core.refresh() - nothing happens, seems like new width is set on the new digest cycle (not cuz of refresh()), but cell template still not changed

Dreik3 avatar May 27 '19 07:05 Dreik3

same issue here

btkfrank avatar Nov 17 '20 03:11 btkfrank