I've attached my datasource
I have a valueAccessor that creates the value in the last_name column
lastname: function(field, data, column){
if(data["principal_investigators"] !=""){
let aux = data["principal_investigators"]
return aux[0]["last_name"]
} else {
return ""
}
},
So you can see that the field is being created with one of the JSON objects.
On the datasource there is an object of fiscal_year that is one of the root columns. What I would like to do is sort by year and then by last_name. Is that possible?
sortOptions: { columns: [{ field: 'fiscal_year', direction: 'Descending' }, { field: 'last_name', direction: 'Descending' } ] },
Does not work since the column is not a root datasource value. If I use a sort comparer how would I include the last_name?
Thanks
Attachment:
syncfusion_cf793489.zip