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

[Solved] Create Columns through DataBinding

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin Sarosi
Top achievements
Rank 2
Martin Sarosi asked on 30 Jul 2009, 11:26 AM
------------------------------------------------------------------------thing1
I have a grid I can bind to a collection (parent).

Each item in that parent collection has another collection (child) on it.

The child collection will be of the same length for each item in the parent collection but not necessarily any object containing the parent collection.

e.g.
Main Object
----------------Parent Collection
----------------------------------------item1--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3
----------------------------------------item2--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3
----------------------------------------item3--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3



So I want my grid to be like this
item1.Date thing1.value thing2.value thing3.value item1.Description  item1.Name
item2.Date thing1.value thing2.value thing3.value item2.Description  item2.Name
item3.Date thing1.value thing2.value thing3.value item3.Description  item3.Name

Of course another object may exist where there are fewer  than 3 things on each item.

Is there a way of doing this declaratively?




1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 Aug 2009, 07:08 AM
Hello Martin,

To see more information along the lines of the requested functionality, please refer to the following article:

http://www.telerik.com/help/aspnet-ajax/grdaligncolumnsinhierarchy.html

I hope it gets you started properly.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Martin Sarosi
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or