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

Scroll RadPivotGrid Fields Window

5 Answers 137 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 20 Jun 2013, 04:57 PM
I am trying to put together a general purpose pivot table, so I don't really know what columns they will be needing. As a result I have a lot of hidden fields. 

Is it possible to get a scrollbar on that window? You can expand it of course, but only gives me 35 to 40 hidden fields. Expanding the width only makes the objects wider, it it would switch to multiple columns that would be a good alternative to a scrollbar.

Thanks
Randy Miller

5 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 25 Jun 2013, 03:01 PM
Hello Randy,

I am not sure I understand your question correctly but in RadPivotGrid the horizontal scroll is enabled by default and if you have more columns in future it will automatically add the scroll bar. Please examine the PivotGrid - Scrolling demo and see if it helps you resolving your case.

Regards,
Venelin
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
Randy
Top achievements
Rank 1
answered on 25 Jun 2013, 05:09 PM
I think there is some confusion about which window I am talking about. I am referring to the Fields Window Popup, not the pivot window, please see attached graphic.

I have 20 different fields in the list. The majority are hidden. I don't know which fields they need, so I have included those 20, however there will probably be closer to 40 when I am done. I can resize the fields window until everything is visible, but even with 20 the fields window is taller than the actual pivot table. It does work since I get scrollbars, but isn't optimum. I would like to be able to put a scrollbar on the field window itself. That way within reason, the number doesn't matter.

Thanks
Randy
0
Venelin
Telerik team
answered on 26 Jun 2013, 11:47 AM
Hi Randy,

You can achieve the desired functionality by adding the following CSS to your styles:

.rpgFieldsWindow {
    overflow: auto;
}

In this manner scroll bars will appear whenever they are needed.

I hope this helps.

Regards,
Venelin
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
Randy
Top achievements
Rank 1
answered on 26 Jun 2013, 01:39 PM
That worked, thanks.
Incase anybody else is looking I did have to add the !important to the line as well to get it to take.

Randy
<style type="text/css">
    .rpgFieldsWindow  {
        overflow: auto !important;
    }
</style>
0
Venelin
Telerik team
answered on 01 Jul 2013, 01:31 PM
Hi Randy,

Note that it is not recommended to use !important when it can be avoided. Instead you can increase the selector specificity by adding elements, classes, ids etc. like so:

div.rpgFieldsWindow {
    overflow: auto;
}

In this manner the specificity is increased by 1 - one element is added to the selector.

Regards,
Venelin
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
PivotGrid
Asked by
Randy
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Randy
Top achievements
Rank 1
Share this question
or