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

Dynamic Column grid with multiple values on a grid

1 Answer 456 Views
Grid
This is a migrated thread and some comments may be shown as answers.
administrator
Top achievements
Rank 1
administrator asked on 09 Apr 2014, 01:23 PM
Howe to create a dynamic column grid with multiple cell values. I've managed to create a dynamic column grid, not clear on how to add multiple values to a dynamic column cell. I have attached the mock screen of what I want to create. The right side of the grid is dynamic columns which each cell of the column display's 2 data valued.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Apr 2014, 11:21 AM
Hello Indika,

There are two ways to include two data values in a single table cell.

1. Use a column template. Depending on the Grid databinding method (client and/or server), you will need client and/or server templates.

2. Use a ViewModel, which combines the two values into a single string value. If this new value contains HTML markup, you will need to disable column content encoding.

The first approach is recommended, especially if you will be using editing.

Regards,
Dimo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
administrator
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or