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
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
0
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
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
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
Hello Grodon,
You could pass the column Unique Names or the DataField in order to collapse specific field.
Regards,
Maria Ilieva
Telerik
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
Are you able to provide some sample code to illustrate this?
Thanks
Gordon
0
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
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
I never got your sample code. Did it get lost in spam or something?
Thanks
Gordon
0
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
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!
Thanks!
0
Hi Matthew,
You could simply download the project from the previous forum post where the project is attached.
Regards,
Maria Ilieva
Telerik
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.