Collapse specific rows upon load

10 posts, 0 answers
  1. Gordon
    Gordon avatar
    4 posts
    Member since:
    Jan 2014

    Posted 03 Feb 2014 Link to this post

    Hi,

    The PivotGrid is a great component but I'm confused how I gain a little more control over the display.

    We'd like to be able to have specific rows (and maybe columns) collapsed when the component first loads.
    I've found ways to collapse everything but not by ID.

    Is this possible?

    Cheers

    Gordon


  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 06 Feb 2014 Link to this post

    Hello Gordon,

    You could add the specific column index to the collapsed column and row indexes for the control as shown in the online demo below:
    http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/templates/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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gordon
    Gordon avatar
    4 posts
    Member since:
    Jan 2014

    Posted 06 Feb 2014 in reply to Maria Ilieva Link to this post

    Hi, thanks for your response. Do you mean like this:

    if (!IsPostBack)
    {
        RadPivotGrid1.CollapsedColumnIndexes.Add(new object[] { "April" });
    }

    What does this syntax mean precisely? The column headings are dynamic. Can we use the unique name to select the columns?

    Thanks

    Gordon
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 11 Feb 2014 Link to this post

    Hello Grodon,

     You could pass the column Unique Names or the DataField in order to collapse specific field.

    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  6. Gordon
    Gordon avatar
    4 posts
    Member since:
    Jan 2014

    Posted 11 Feb 2014 in reply to Maria Ilieva Link to this post

    Hi,

    Are you able to provide some sample code to illustrate this?

    Thanks

    Gordon
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Feb 2014 Link to this post

    Hello Gordon,

    Excuse me for the bit delay in this response.

    I will prepare a sample example and will send it to you today, so that you could test it on your end and verify if ti covers your requirements.

    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  8. Gordon
    Gordon avatar
    4 posts
    Member since:
    Jan 2014

    Posted 03 Mar 2014 in reply to Maria Ilieva Link to this post

    HI Maria,

    I never got your sample code. Did it get lost in spam or something?

    Thanks

    Gordon
  9. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 06 Mar 2014 Link to this post

    Hi Gordon,

    Excuse us for the delay on this response which was caused by an issue in our local system.

    Find attached the test application, I have prepared for you, which demonstrates the required functionality. The same approach could be applied for Column fields as well.

    Test the application on your end and verify if it covers your requirements.

    Best regards,
    Maria Ilieva
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  10. Matthew
    Matthew avatar
    1 posts
    Member since:
    Mar 2014

    Posted 25 Mar 2014 in reply to Maria Ilieva Link to this post

    Would you be able to send the sample code to me as well?  I am having the same issue.

    Thanks!
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Mar 2014 Link to this post

    Hi Matthew,

    You could simply download the project from the previous forum post where the project is attached.

    Regards,
    Maria Ilieva
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017