Jump to content
  • 0

PIVOT is possible to resize columns?


vidierre

Question

4 answers to this question

Recommended Posts

  • 0

Hello @innov2e,

You may try to use CSS in the DataPage Header, select first two columns and specify the width for them.

For example:

<style>
  
tr th:nth-child(-n + 2),
tr td:nth-child(-n + 2) {
width: 50px !important;
}
  
</style>

Please disable the HTML editor on the Advanced tab before pasting these CSS properties. 

Link to comment
Share on other sites

  • 0
On 10/20/2021 at 11:10 AM, CoopperBackpack said:

Hello @innov2e,

You may try to use CSS in the DataPage Header, select first two columns and specify the width for them.

For example:

<style>
  
tr th:nth-child(-n + 2),
tr td:nth-child(-n + 2) {
width: 50px !important;
}
  
</style>

Please disable the HTML editor on the Advanced tab before pasting these CSS properties. 

Pheraps I miss some CSS knwoledge, it doesn't work. What do you mean for "select first two columns"?  This will be independet from Field Size specified into Datapage?

Link to comment
Share on other sites

  • 0

Hello @innov2e,

I meant that these selectors retrieve the first and the second field of the Pivot table DataPage:

tr th:nth-child(-n + 2), tr td:nth-child(-n + 2)

And then we can apply the width we want, in my example it is 50 pixels, of course you may specify the width you need. 

For example, initially I have this layout:

KqNci7l.png

When I added the styles to the Header section, I received the following layout:

IQC9FBA.png

Is it the expected result? 

Link to comment
Share on other sites

  • 0
5 hours ago, CoopperBackpack said:

Hello @innov2e,

I meant that these selectors retrieve the first and the second field of the Pivot table DataPage:

tr th:nth-child(-n + 2), tr td:nth-child(-n + 2)

And then we can apply the width we want, in my example it is 50 pixels, of course you may specify the width you need. 

For example, initially I have this layout:

KqNci7l.png

When I added the styles to the Header section, I received the following layout:

IQC9FBA.png

Is it the expected result? 

exactly I go to try it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...