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

Collapse specific rows upon load

9 Answers 36 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Gordon
Top achievements
Rank 1
Gordon asked on 03 Feb 2014, 04:41 PM
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


9 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Feb 2014, 01:11 PM
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.
0
Gordon
Top achievements
Rank 1
answered on 06 Feb 2014, 01:25 PM
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
0
Maria Ilieva
Telerik team
answered on 11 Feb 2014, 09:31 AM
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.
0
Gordon
Top achievements
Rank 1
answered on 11 Feb 2014, 10:55 AM
Hi,

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

Thanks

Gordon
0
Maria Ilieva
Telerik team
answered on 17 Feb 2014, 08:14 AM
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.
0
Gordon
Top achievements
Rank 1
answered on 03 Mar 2014, 02:02 PM
HI Maria,

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

Thanks

Gordon
0
Maria Ilieva
Telerik team
answered on 06 Mar 2014, 12:34 PM
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!

0
Matthew
Top achievements
Rank 1
answered on 25 Mar 2014, 08:16 PM
Would you be able to send the sample code to me as well?  I am having the same issue.

Thanks!
0
Maria Ilieva
Telerik team
answered on 28 Mar 2014, 02:31 PM
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.

 
Tags
PivotGrid
Asked by
Gordon
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Gordon
Top achievements
Rank 1
Matthew
Top achievements
Rank 1
Share this question
or