PivotView - Fixed Total Width

I'm using the PivotView in my project and struggling with the width. The width should be as wide as the sum of the columns, but for me it stretches or shrinks the view (see the stretched right column in the screenshot). What is the right setting to achieve that?

Attachment: pivottablesize_dddbd7dc.zip

3 Replies 1 reply marked as answer

SN Sivamathi Natarajan Syncfusion Team July 6, 2020 12:36 PM UTC

Hi Michael Lang, 
 
Thanks for contacting Syncfusion support. 
 
We suspect that CSS for pivot table component is not referred. So, kindly import the styles for pivot table in styles.css. Meanwhile, we have prepared a sample for your reference. Please check the below sample and UG for more information. 
 
 
 
If still the problem exists, kindly reproduce the problem in the provided sample and revert us (or) send your sample that replicating the problem. This would be a very helpful for us to investigate the reported problem at our end and provide the solution at earliest. 
 
Please let us know if you concern. 
 
Regards, 
Sivamathi. 


Marked as answer

ML Michael Lang July 7, 2020 12:10 PM UTC

Thanks for your quick response. Indeed I forgot to add these 3 lines to the css-file:

width100% !important;
    height100%;
    displayblock;

Now it just works as intended! :)


SN Sivamathi Natarajan Syncfusion Team July 8, 2020 07:53 AM UTC

Hi Michael Lang, 
 
Thanks for the reply. 
 
Regards, 
Sivamathi. 


Loader.
Up arrow icon