angularjs - sorting in ui grid with grouped columns (cellTemplate) -
i have grouped 2 columns in ui-grid using celltemplate, , rendered fine:
celltemplate: '<div class="ngcelltext">{{row.entity.firstname}} {{row.entity.lastname}}</div>'
unfortunately, sorting worked when columns separated (firstname alone, lastname alone) not work anymore.
i sort grouped columns in celltemplate sorting firstname only.
could give me hints work (i not ask complete solution)
personally modify data prior populating grid, example create full name property on initial objects array , use in grid instead of first name + last name.
that way, have 1 column full name , sortable without additional code.
Comments
Post a Comment