List or Library columns - document extension

Hello guys,

I need a bit of help with showing documents in the list or library. Sometimes the one column "Name" of the documents takes so much space as needed, but the extension sometimes behaves differently. Sometimes it looks perfect because even extension of the document (icon) looks good and take so much space as it needs, but.

I have some custom CSS that overrides the header/footer and some pieces of the list or library control.
Could you help me with the formatting? Like why the icon takes so much space? I cannot drag the column to the left. And If it worked, then after the refresh I had to do it again. Unfortunately, I have roughly from 5-20 list or libraries on Page in Plumsail Form webpart.

And when I have ".url" link in the document library, it is shown in the control, but when I click on the ".url" (Link) it automatically starts to download the file and browser notifies me about potential risk. Is there any way, except field customizer, that I can let the people click on the "file" which has ".url" inside and be redirected to specific page?

Thank you :slight_smile:
Regards
Stepan

@StepanS, hello!

These are great questions. Yesterday I too was struggling to force my List of Library Control (LOLC) to also constrain to a specific size.

I have found (only my experience) that manually adding width and edit values in the form designer for a specific LOLC doesn't guarantee the width will stay constant.

And the "Name" column is particularly feisty - in many operations! I have opted to not display the default name field in the same way but I wanted to share some things I have been noticing/experiencing. Maybe helpful, maybe not :slight_smile:

FINDINGS

  • To get the control settings in the Plumsail Designer to hold, I must first format the column in SharePoint (Advanced mode, by adding a line in JSON "width": "350 px")
  • Then add that same 350 value in the GENERAL > Width field
  • The Width (edit) value doesn't appear to make any difference in this case - as when I edit a comment, it is the same width as it displays upon submit
  • I have tried many approaches and this method seems to work for now
  • Another interesting facet involves the relationship between SharePoint and its Plumsail form - the refresh rate always surprises me - if I update something in SP, sometimes it passes directly through Plumsail and if I reload the form in the browser, the changes are applied - other times nothing
  • To handle this, I frequently Reload the SharePoint fields in PS Designer to sort of "force" a refresh - it seems to help (but not always)
  • That is the #1 thing I commonly say about SharePoint - it works, but not always :slight_smile:

Hello @shedev ,

Interesting findings. I am also quite familiar with "caching" on SharePoint sites etc. when refreshing the page (you do not refresh it in a way you think). So the caching is one problem. When you need to execute piece of javascript on sharepoint homepage, you should always do it with some "timestamp" in URL, otherwise the cache is applied. My observations and experience.

Thank you for clarification of "Width" of the columns.
What I describe is the column that is undefinable, like non-existent for me from Plumsail Designer. It is the icon (extenion/fileType) of the file. Sometimes the width is okay, because the icon is height 16x16px so it looks good. But sometime the height is 16px, maybe a bit more, but the width is absolutely nonsense 200 or more as you can see in the picture.

And yeah, for different columns, it behaves also strange :slight_smile: But these I must have "auto" due to up to 255 characters in the File Name :slight_smile:

But thank you, I appreciate your observations and description.

Regards
Stepan

Hello @StepanS,

On my form, the width of the expansion icon column matches the size of the icon. On your forms does it look like this for all list views or just the ones where grouping is applied?

Do you mean Internet Shortcut file that is basically a link? Could you please share the file example.
How does this file behave when accessed from a SharePoint library?

Hello @Margo ,

  1. Icons are always good. But the width of the column (not set in Plumsail Designer) is changed to this: (applicable for all


    Not grouped - default list view:
    image
    But even grouped views were good - and are good at some situations. But when I use this site and this environment where the libraries are shown, during the time they get messy again.

  2. Yes, I mean internet shortcut - it is called "Link" in sharepoint library to be created. When I create a Link, it shows me to add the name for the link and link (URL) itself. So for example I used "https://google.com" and name it as google.com - it behaves like downloading the link.


    And it also warns me about risky file which should not be opened when downloaded from untrusted site.

I hope I have not forget any questions to asnwer. In that case, ask for more please :slight_smile:
Thank you
Stepan

@StepanS,

What version of the widget and webpart this form is using? You can find it in the Source >> Page;
image

What is the version of the desktop designer?
Please share the screenshot.

How is the list view grouping is set up. Please share the screenshot of the view settings too.

Hello @Margo ,
Versions in Sources:
image

Desktop Designer is in version: 3.6.5

Grouping is set like this in sharepoint list view:
image

Also use sort:

These two columns only:

@StepanS,

Thank you for the details!
The default Document library doesn't include Document Type column. What is the type of this column?
image

I couldn't reproduce this when the lsit view is grouped by Type column:
image

image

Hello @Margo ,
DocumentType is managed metadata column (custom column):

  1. Formular
  2. External Document
  3. Internal Documents
  4. ....
    Fun fact is that no-one has reported me this issue, but for me, it occurs quite often. For example right now, it works :slight_smile:
    Strange.

@StepanS,

Couldn't reproduce the issue. This could be caused by cache or custom code.