none
How to create 'file size' column for a document library view?

    Question

  • Dear,

     

    I want to show the file size of a document in a view, if possible even with a download time indicator... I suppose it's certainly possible, but what's the best way? I know that the file size is shown in the version history list. How to show it in a regular view?

     

    Thanks for the feedback!

     

    Kind Regards,

    Luc

    Tuesday, September 18, 2007 2:55 PM

Answers

  • Hi Luc,

    The default view for a Document Library "All Documents" does not include the file size column. You can either modify this view or can create a new custom view and set that view as default view.

    In case, If you don't see the file size column, then probably the column is hidden. In this case, you can use the object model, iterate through the list columns and mark it hidden = false.


    Regards,
    Gaurav
    http://gauravrehan.spaces.live.com
    Tuesday, September 18, 2007 7:20 PM

All replies

  • Hi Luc,

    The default view for a Document Library "All Documents" does not include the file size column. You can either modify this view or can create a new custom view and set that view as default view.

    In case, If you don't see the file size column, then probably the column is hidden. In this case, you can use the object model, iterate through the list columns and mark it hidden = false.


    Regards,
    Gaurav
    http://gauravrehan.spaces.live.com
    Tuesday, September 18, 2007 7:20 PM
  • Ok, I totally overlooked the column. Shame on me... :-). It's indeed already there. Maybe I'll play around with the calculated columns to add some download time..

     

    Thanks!

     

     

    Wednesday, September 19, 2007 8:13 AM
  • Hi Luc - could you point me to where you found the "file size" column?  I'm not seeing it.

     

    Thanks very much!

     

    Thursday, October 18, 2007 2:40 PM
  • Gaurav said:

     

    "If you don't see the file size column, then probably the column is hidden. In this case, you can use the object model, iterate through the list columns and mark it hidden = false."

     

     

    OK, so how do I access the "object model" to make this change?

     

    Saturday, May 31, 2008 12:14 AM
  • 1. Please open the DocumentLibrary--settings--views.

    2. Select the view which is marked as default

    3. Click on that

    4. Then in that page you should be able to see the "FileSize" column. Just select that and click OK.

    Tuesday, June 10, 2008 4:26 AM