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

Can't join two columns in MVC

1 Answer 670 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 17 Feb 2017, 04:26 PM

I have a CallDate and a CallTime field and I want to display them both in the same column.

I have searched google and the documentation but I can't find an explanation of how to do this.

Please can you advise.

 

At the moment I have

 

.Columns(columns =>
        {
                  columns.Bound(u => u.CallDate);
                  columns.Bount(u => u.CallTime);
}

 

I want a column called Call Date with both of these values joined together.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 21 Feb 2017, 10:05 AM

Hello Phil,

Please try to use the ClientTemplate and try to concatenate or perform some custom logic in the template. I would suggest to take a look at the How to Customize the Way Properties Are Displayed in Grid-Bound Columns? article. 

Regards,
Boyan Dimitrov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Phil
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or