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 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mieke
Top achievements
Rank 1
Mieke asked on 14 Oct 2014, 07:44 AM
Hi,

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"
MyProjectRelation.ParentColumnNames.Add("projectnr")
MyProjectRelation.ChildColumnNames.Add("projectnr")

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
0
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.

Regards,
Desislava
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
GridView
Asked by
Mieke
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or