How to change radGrid vertical to horizontal orientation?

13 posts, 1 answers
  1. Saad
    Saad avatar
    82 posts
    Member since:
    Oct 2008

    Posted 23 Nov 2008 Link to this post

    i want my radgrid to show data horizontally.....is it possible?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Nov 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jagz W
    Jagz W avatar
    17 posts
    Member since:
    Mar 2012

    Posted 18 Jun 2012 Link to this post

    The page not found....:(
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Jun 2012 Link to this post

    Hi,

    Here is the demo link.
    Displaying Pivot Data

    Thanks,
    Princy.
  6. Jagz W
    Jagz W avatar
    17 posts
    Member since:
    Mar 2012

    Posted 19 Jun 2012 Link to this post

    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
  7. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Jun 2012 Link to this post

    Hi,

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

    Thanks,
    Princy.
  8. Daniel
    Daniel avatar
    13 posts
    Member since:
    May 2013

    Posted 09 Jan 2014 Link to this post

    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".
  9. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jan 2014 Link to this post

    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
  10. Daniel
    Daniel avatar
    13 posts
    Member since:
    May 2013

    Posted 10 Jan 2014 Link to this post

    That solution only works with DataTable, I'm using a List as DataSource, because I'm working with EntityFramework in the data layer.
  11. Daniel
    Daniel avatar
    13 posts
    Member since:
    May 2013

    Posted 10 Jan 2014 Link to this post

    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);
                }
            }

  12. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 Jan 2014 Link to this post

    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.
  13. Daniel
    Daniel avatar
    13 posts
    Member since:
    May 2013

    Posted 14 Jan 2014 Link to this post

    I only see numbers in that example and I want to show Strings. I've posted a possible solution here.
  14. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jan 2014 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017