Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouped grid with hidden columns causes error "Cannot read property 'groupHeaderColumnTemplate' of undefined" #5085

Closed
Alex-Bubblemaster opened this issue May 30, 2019 · 0 comments
Assignees
Milestone

Comments

@Alex-Bubblemaster
Copy link
Contributor

Alex-Bubblemaster commented May 30, 2019

Bug report

Ticket ID 1410772

Reproduction of the problem

If the grid is grouped and all columns are hidden the error is thrown here:

 _renderGroupRows : function() {
 /* Line 9815 in grid.js at the time of posting this issue */
 firstColumnGroupData = !column.groupHeaderTemplate && visibleColumns(that.columns)[0].groupHeaderColumnTemplate ? visibleColumns(that.columns)[0] : false;
}

Current behavior

image

Expected/desired behavior

No JavaScript error should be thrown by a grouped grid with all hidden columns

Workaround

Dojo

  • set grid as autobind false
  • change the visibility of the columns array column at index 0
  • read the data source
  • hide the created rows
  grid.columns[0].hidden = false;
  grid.dataSource.read().then(function(){
  	grid.tbody.find("td").css({display: "none"})
  });

Environment

  • Kendo UI version: 2019.2.514
  • jQuery version: 1.12
@gyankov gyankov self-assigned this May 31, 2019
@dmanova dmanova added this to the 2019.R2.SP.Next milestone Aug 21, 2019
@dmanova dmanova closed this as completed Aug 21, 2019
@Dimitar-Goshev Dimitar-Goshev modified the milestones: 2019.R2.SP.Next, 2019.R3 Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants