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

[Solved] Horizontal GridView

1 Answer 130 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jordan Kngiht
Top achievements
Rank 1
Jordan Kngiht asked on 16 Feb 2010, 03:23 AM
Hey,

We have a scenario as follows: We need to show a comparison of products in columns across the page. Semantically the columns would become rows, and the rows the columns (i.e. a grid that runs horizontally rather than vertically).

E.g.

Instead of 
Product Name Cost Blah
[Product 2] 34 sdfsf
[Product 3] 56 sdfsdf

it would be

Product Name [Product 2] [Product 3] etc..
Cost 34 56
Blah sdf sfdsf

It is unknown how many products will be compared at design time.. I'd really like to bind the "columns" to the ItemsSource so I can just update a collection with my products and they will show up.

I had a hunt through doco and couldn't see a simple way to do this.

I had a play around with the RadGridView template and saw that you can switch the GridViewVirtualizingPanel to Orientation=Horizontal but didnt get much further with the rest...

Any assistance would be greatly appreciated!

Cheers,

Jordan.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 16 Feb 2010, 07:31 AM
Hello Jordan Kngiht,

RadGridView does not support this natively but there is a way to transform the data itself so that the rows appear as columns. One of my colleagues has blogged about transposing data (rows as columns) which might help you get the desired result.


Regards,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Jordan Kngiht
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or