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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -