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

How to change radGrid vertical to horizontal orientation?

12 Answers 890 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saad
Top achievements
Rank 1
Saad asked on 23 Nov 2008, 05:55 PM
i want my radgrid to show data horizontally.....is it possible?

12 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 24 Nov 2008, 03:45 AM
Hello Saadi,

Go through the following online demo link which shows how the grid can be bound to pivot table which will be useful when you want to display the data in a reverse order but still keep the same presentation and structure in the source table.
Displaying pivot data

Thanks
Princy.
0
Jagz W
Top achievements
Rank 2
answered on 19 Jun 2012, 03:43 AM
The page not found....:(
0
Princy
Top achievements
Rank 2
answered on 19 Jun 2012, 04:08 AM
Hi,

Here is the demo link.
Displaying Pivot Data

Thanks,
Princy.
0
Jagz W
Top achievements
Rank 2
answered on 19 Jun 2012, 06:11 AM
Hi,

Thanks for reply. It works for me.
Could you tell me how i get the selected panel values on button click?


Regards,
Jagz W
0
Princy
Top achievements
Rank 2
answered on 20 Jun 2012, 08:19 AM
Hi,

Unfortunately I couldn't understand your requirement. Can you please elaborate you scenario a bit more.

Thanks,
Princy.
0
Daniel
Top achievements
Rank 1
answered on 09 Jan 2014, 04:32 PM
RadPivotGrid only works with numbers, It doesn't work for string data. There is no a simple way to present a RadGrid vertically instead of horizontally. RadControls haven't got that "flexibility".
0
Princy
Top achievements
Rank 2
answered on 10 Jan 2014, 05:29 AM
Hi Daniel,

I guess you want to display string values in a grid that display the data in a reverse order (vertical grid)structure. Please have a look into this documentation on Displaying pivot data, which might help you with your requirement.

Thanks,
Princy
0
Daniel
Top achievements
Rank 1
answered on 10 Jan 2014, 07:16 AM
That solution only works with DataTable, I'm using a List as DataSource, because I'm working with EntityFramework in the data layer.
0
Daniel
Top achievements
Rank 1
answered on 10 Jan 2014, 07:35 AM
In a way to show string data into a RadPivotGrid, I'm trying to handle the RadPivotGrid_CellDataBound event and add a Label inside the cell, but I can't access to the DataItem. I'm getting a AggregateError when I try to do it, because the original DataItem is a String.

protected void RadPivotGrid1_CellDataBound(object sender, PivotGridCellDataBoundEventArgs e)
        {
            Label lblCell = new Label();
 
            if (e.Cell.DataItem != null)
            {
                lblCell.Text = e.Cell.DataItem.ToString(); //It shows "AggregateError"
                e.Cell.Controls.Add(lblCell);
            }
        }

0
Maria Ilieva
Telerik team
answered on 14 Jan 2014, 11:19 AM
Hello Daniel,

I would suggest you to review the online demo below which presents the needed approach for accessing all field types in RadPivotGrid:

http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/appearance/conditionalformatting/defaultcs.aspx

I hope this helps.



Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Daniel
Top achievements
Rank 1
answered on 14 Jan 2014, 11:29 AM
I only see numbers in that example and I want to show Strings. I've posted a possible solution here.
0
Maria Ilieva
Telerik team
answered on 15 Jan 2014, 11:29 AM
Hello Daniel,

Thank you for sharing your solution, I'm sure it will be of a big help for other users implementing similar scenarios.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Saad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jagz W
Top achievements
Rank 2
Daniel
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or