Jump to content
  • 0

Grid Edit mode in a reports datapage change width of one of the columns


Billp

Question

I have a results page that I want the users to open in grid edit mode.  The first column needs to be significantly wider than the 2nd and 3rd column.  I have been trying to find a CSS Selector to be able to modify the width since in the standard form it is the same size as the other two columns but I can't find anything unique to identify it.   I am assuming once I find the unique selector I can simply add the CSS in the header of the page and viola?  

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi! Just to add to the answer above, you can also use this code if you have a long text in one of your fields. 

<style>
div[class="HeadCtnr"] th:nth-child(1) {
width: 400px !important;
}
.cbGridCtnr > .BodyCtnr .Cell > .Data:nth-child(1) {
overflow: visible !important;
white-space: nowrap !important;
}
div[class="BodyCtnr"] th:nth-child(1) {
width: 400px !important;
}
</style>

If you want to adjust the width of the Grid Edit, make sure to modify both the code for HeadCntr and BodyCntr. 

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...