I have my column bind on the grid as follows:
columns.Bound(p => p.LastName)
.ClientTemplate($"#=IsSpecialPerson ? 'Special Message' : ''##=LastName#")
And now I have to add middle name with a space to the last name column if exists. I have tried the following, but no luck.
columns.Bound(p => p.LastName)
.ClientTemplate($"#=IsSpecialPerson ? 'Special Message' : ''##=LastName# ##= MiddleName != null ? MiddleName : ''#")
I am getting invalid template error on the html.