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

Add extra column for input below another column in gridviewrelation

1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Mieke asked on 14 Oct 2014, 07:44 AM

We use a gridview with a gridviewrelation.

The Case:

We have a list of projects, for each project we have employees working on a specified project.
For each week they have to put amount of hour(s), W1 -2014, etc... (see picture)
We have also a column W1Description2014 etc... we want to add this below the column of W1-2014, etc...

See picture for more information.

This is de code we use to add the grid relation:

Dim MyProjectRelation As New GridViewRelation(MyBase.SearchGrid.MasterTemplate, template)
MyProjectRelation.RelationName = "ProjectRelations"

In telerik screenshot we see difrent styles, but we can't find this issue in code.

Do you have any solution for this issue ?

With friendly regards.

1 Answer, 1 is accepted

Sort by
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Oct 2014, 01:34 PM
Hello Mieke,

Thank you for writing.

One possible approach to display additional information for each week is to build a three-level hierarchy and display the "Description" column on the third level. You can refer to our GridView >> Binding to Hierarchical Data Programmatically help article >> Setting the Multi-Level hierarchy in bound mode section.

Another solution is to use details rows which example is available in our Demo application >> GridView >> Rows >> Row details.

Note that you can construct a more complex columns layout in our RadGridView in order to meet your requirements. Please refer to our RadGridView Merge Cells KB article which demonstrates the available approaches. 

I hope this information helps. Should you have further questions, I would be glad to help.


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.

Asked by
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question