This is a migrated thread and some comments may be shown as answers.

[Solved] Merging columns...

0 Answers 8 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shea
Top achievements
Rank 1
Shea asked on 23 Mar 2011, 06:52 PM
I am thinking this must be a fairly common question, but I can't seem to find an answer similar to my situation.

Html.Telerik().Grid<Person>(Model.OrderBy(m=>m.LastName))
                    .Name("Person")
                    .Footer(Model.Count() > 10)
                    .Columns(c=>
                    {
                        c.Bound(m => m.LastName + "," + m.FirstName).Title("Name").Width(100);
                        c.Bound(m => m.Age).Title("Age").Width(50);
                     })

I get an error when I try to do the binding of first+last.  Is there a way to do this, or do I I have to do this in my model?

Thanks,
~S
Tags
Grid
Asked by
Shea
Top achievements
Rank 1
Share this question
or