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

How do I get the grid to display data from multiple sources

2 Answers 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
wojciech sobocinski
Top achievements
Rank 1
wojciech sobocinski asked on 03 Feb 2010, 12:13 AM
Basically we have these related objects and I would like to compose a row in the grid at runtime pulling data from multiple objects at once. Sort of like a composite row where say 50% of columns are pulling data from obj 1 and the other 50% from object 2.

I know I can compose a facade obj and bind to those properties and even at runtime I can create a dynamicobject and bind a collection of these in the grid but I am trying to avoid that.

Also it 'works' nice if I use a single row view pulling data from two objects - but once I need to bind to two collections which are synched up that's where I'm stuck.
Any thoughts/ideas on how to accomplish that?

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 03 Feb 2010, 08:46 AM
Hello wojciech sobocinski,

Unfortunately RadGridView does not support such marginal scenario. I am afraid I can not avoid a middle layer which combines both collections. So the solution is a kind of custom View Model , facade as you say or something else to merge the data , before feeding it to RadGridView.

Regards,
Pavel Pavlov
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
wojciech sobocinski
Top achievements
Rank 1
answered on 03 Feb 2010, 08:23 PM
If I could set a cell level binding maybe that would work but I can't seem to find anyway to do it.

Also as a side note, could this possibly be entertained as a feature add?
Tags
GridView
Asked by
wojciech sobocinski
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
wojciech sobocinski
Top achievements
Rank 1
Share this question
or