Issue
In my code, I'm using AG-GRID for angular. I have two columns. One is Account.Name and the other is Account.Surname. I'm trying to display these two columns in one cell. I used the approach below but it did not work. What should I do to achieve what I want?
TS:
{ columnGroupShow: 'open', headerName: 'Requested Person', valueGetter: this.nameGetter },
nameGetter(params) {
return params.ticket.Account.Name + ' ' + params.ticket.Account.Surname;
}
Solution
Try this,
{
columnGroupShow: 'open',
headerName: 'Requested Person',
valueGetter: function(params) {
return params.ticket.Account.Name + ' ' + params.ticket.Account.Surname;
}
},
Answered By - VKD
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.