In my case of Kendo grid, datasource is from JSON data. and part of data feed is like following:
"User": {
...
"FirstName": "Joe",
"LastName": "Doe",
"Phone": null,
...
}
And I need to display full name in column of "Name" in kendo grid
columns: [
{ field: "User.FirstName+' '+ User.LastName", title: "Name"},
...
]
and I also set sortable to be true for this grid. And that works well, the grid shows cell as "Joe Doe"
However, the grid doesn't sort by "Name" column and when I tried to click header of column "Name", it returns error on kendo.core.min.js
"(function($,undefined){function Class(){}function compilePart(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"')......."
Could you let me know where I did wrong? Thanks,
"User": {
...
"FirstName": "Joe",
"LastName": "Doe",
"Phone": null,
...
}
And I need to display full name in column of "Name" in kendo grid
columns: [
{ field: "User.FirstName+' '+ User.LastName", title: "Name"},
...
]
and I also set sortable to be true for this grid. And that works well, the grid shows cell as "Joe Doe"
However, the grid doesn't sort by "Name" column and when I tried to click header of column "Name", it returns error on kendo.core.min.js
"(function($,undefined){function Class(){}function compilePart(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"')......."
Could you let me know where I did wrong? Thanks,