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

Columns with empty field name and ng-csp #815

Closed
nikospara opened this issue Nov 12, 2013 · 0 comments
Closed

Columns with empty field name and ng-csp #815

nikospara opened this issue Nov 12, 2013 · 0 comments

Comments

@nikospara
Copy link

When the ng-csp (link) is specified, then columns, whose field property is the empty string, display the entire row as JSON string. Although columns with empty field and no cellTemplate would be a rare, niche case, they are encountered when grouping is enabled (showGroupPanel: true).

Steps to reproduce

  • Specify ng-csp at the <html>
  • Include a ng-grid specifying showGroupPanel: true in the grid options
  • Group by a column, then expand the grouping row with the triangle.

A plunk, forked from the examples, demonstrating the problem: http://plnkr.co/edit/yLdkQlw08wN9j0sqjq3I

Bug

  • After expanding the cells in the column of the triangle will display the raw JS object

Hint for solution

This line appends the field to the expression 'row.entity.' without checking it for emptiness, null, undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants