Skip to content

angular ui grid grouping won´t work when groupPriority is set #5495

@theremin

Description

@theremin

i have create a little plunker example to demonstrate the issue.
when i use the ui grid with enableGrouping = true and add a groupingPriority to the column the groups are distributed in more items on the grid. By opening one group all other groups with the same name opens too.

not working when activate this columns:

    this.bugColumns = [
    { 
      'field': 'device_name',
      'enableGrouping': true,
      'grouping': {
        'groupPriority': 1
      }
    },
    { 
      'field': 'device_type_name', 
      'enableGrouping': true,
      'grouping': {
        'groupPriority': 0
      }
    }
   ];

working with this ..:

this.columns = [
    { 
      'field': 'device_name',
      'enableGrouping': true
    },
    { 
      'field': 'device_type_name', 
      'enableGrouping': true
    }
  ];

http://plnkr.co/edit/3acARmRVoX27HCd9PtQx?p=info

Activating the example with 'bugColumns' demonstrates that there are same groupenames repeated, and clicking on each of them not one group will be open but all groups will be open.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions