This question is locked. New answers and comments are not allowed.
Hi,
I'm using AJAX databinding and I have the following model class:
Now I want to do this:
I'm using AJAX databinding and I have the following model class:
public class SampleModel { [DisplayFormat(NullDisplayText = "(null value)")] public ChildModel ChildModel { get; set; }}Now I want to do this:
That's why I decorated the ChildModel class like this:.Columns(columns =>
{
columns.Bound(m => m.ChildMOdel)
[DisplayColumn("FullName")]publicclassChildModel {[Required, StringLength(25)]publicstringFirstName {get;set; }[Required, StringLength(25)]publicstringLastName {get;set; }[ScaffoldColumn(false)]publicstringFullName {get{returnFirstName +" "+ LastName;}}But the grid seems to output the raw serialized data for the object in the column. Is DisplayColumnAttribute not supported? If not, how do I do this? Thanks.}