How to increase width of a list in SharePoint Designer 2013?

Hello,

I was surprised when i got a message on clicking Edit List on SharePoint saying that i need to upgrade SPD to match the SharePoint. So i started downloading the 2013 version and installed it. I was shocked noticing that there is no Design view in SPD 2013.

I was able to edit the with of the columns in SPD 2010 with the help of solution provided in the below link.

http://aanuwizard.com/2010/08/01/sharepoint-2010-how-to-change-width-of-list-column/

But where is the Design view in SPD 2013? I searched the whole forum before posting this question here. It says that it does not exist. OK i got it, but what is the solution??

Can anyone please help me by providing a solution to edit the width of the columns in the list.

Regards,
SAN

July 18th, 2013 11:15am

Hi,

Thank you for your post.
I'm trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

Thanks ,
Entan Ming

Free Windows Admin Tool Kit Click here and download it now
July 19th, 2013 11:14am

Hello Ming,

Thank you for getting help. I would greatly appreciate if i can find a solution soon.

Regards,

SAN

July 22nd, 2013 5:08am

Hello Santhiya,

For the column you want to increase the width first select the webpart in the designer then click on design  menu and then click on Customize XSLT > Customize Entire View. After this search for the fieldname for example in my case Furniture_x0020_Name then you will get template like dvt_headerfield. Furniture_x0020_Name. In this template there is  attribute name like <xsl:attribute name="style"> in this just add the width size like following.

                                                                <xsl:attribute name="style">padding:0 !important;border:0 !important; width: 600px</xsl:attribute>

This will increase the header size. Now the for the each item width for that column you need to search for the template  FieldRef_printTableCell_EcbAllowed. Furniture_x0020_Name. In this template you will see <td> and you can add style for increasing its width like following.

<td style=" width:300px">

Please let me know if you have any further questions.

Free Windows Admin Tool Kit Click here and download it now
August 6th, 2013 10:26pm

Dear Dhiraj,

Thank you for your solution, but sorry to say i do not understand few things.

1. "first select the webpart in the designer then click on design  menu" - I think SPD 2013 do not have a design view. So where do i have to click? There is only a code view i can see in the SPD. Please first help me with this.

Below is the code which i get when i click on AllItems.aspx. Any idea what changes to be done, where?

<%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document"  %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> -
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:ListProperty Property="TitleBreadcrumb" runat="server"/>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
        <ContentTemplate>
            <span class="ms-ltviewselectormenuheader" runat="server">
                <SharePoint:ListTitleViewSelectorMenu AlignToParent="true" id="LTViewSelectorMenu" runat="server" />
            </span>
        </ContentTemplate>
    </SharePoint:UIVersionedContent>
</asp:Content>
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
</asp:content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
<SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
<SharePoint:ModifySettingsLink runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/images/blank.gif" width='6' height='1' alt="" /></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
        <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
        <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="False" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" NoDefaultStyle="" ViewGuid="{DC99EFD7-F866-45BD-81AB-2E6457135A31}" EnableOriginalValue="False" DisplayName="All Active Projects" ViewContentTypeId="0x" Default="TRUE" ListUrl="" ListDisplayName="" ListName="{B19C0A66-FF3D-4E53-B9E5-5AE1C301270D}" ListId="b19c0a66-ff3d-4e53-b9e5-5ae1c301270d" PageType="PAGE_DEFAULTVIEW" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="PDPL-Dervasil" FrameType="Default" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" TitleUrl="/DasAerien/Lists/PDPL  Dervasil" DetailLink="/DasAerien/Lists/PDPL  Dervasil" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_dc99efd7_f866_45bd_81ab_2e6457135a31" __MarkupType="vsattributemarkup" __WebPartId="{DC99EFD7-F866-45BD-81AB-2E6457135A31}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings>
            <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
            <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
            <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
            <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
            <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
            <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
            <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
            <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
            <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
            <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
        </ParameterBindings>
<DataFields>
</DataFields>
<XmlDefinition>
            <View Name="{DC99EFD7-F866-45BD-81AB-2E6457135A31}" DefaultView="TRUE" Type="HTML" DisplayName="All Active Projects" Url="/DasAerien/Lists/PDPL  Dervasil/AllActiveProjects.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png" >
                <Query>
                    <GroupBy Collapse="FALSE" GroupLimit="100">
                        <FieldRef Name="Segment"/>
                    </GroupBy>
                    <OrderBy>
                        <FieldRef Name="Segment"/>
                        <FieldRef Name="Phs" Ascending="FALSE"/>
                    </OrderBy>
                    <Where>
                        <And>
                            <And>
                                <And>
                                    <Neq>
                                        <FieldRef Name="Phs"/>
                                        <Value Type="Text">-2</Value>
                                    </Neq>
                                    <Neq>
                                        <FieldRef Name="Phs"/>
                                        <Value Type="Text">-1</Value>
                                    </Neq>
                                </And>
                                <Neq>
                                    <FieldRef Name="Phs"/>
                                    <Value Type="Text">5</Value>
                                </Neq>
                            </And>
                            <Geq>
                                <FieldRef Name="Phs"/>
                                <Value Type="Text">0</Value>
                            </Geq>
                        </And>
                    </Where>
                </Query>
                <ViewFields>
                    <FieldRef Name="Attachments"/>
                    <FieldRef Name="LinkTitle"/>
                    <FieldRef Name="Name"/>
                    <FieldRef Name="Markets"/>
                    <FieldRef Name="Description"/>
                    <FieldRef Name="SalesTarget"/>
                    <FieldRef Name="CostRedTrgt"/>
                    <FieldRef Name="_x0025_Cannibalization"/>
                    <FieldRef Name="Invest"/>
                    <FieldRef Name="ExtDevCost"/>
                    <FieldRef Name="Phs"/>
                    <FieldRef Name="Priority"/>
                    <FieldRef Name="PrjctType"/>
                    <FieldRef Name="Cmplx"/>
                    <FieldRef Name="EstEndPh3"/>
                    <FieldRef Name="Re_x002d_EstEndPh3"/>
                    <FieldRef Name="Status"/>
                    <FieldRef Name="Link"/>
                    <FieldRef Name="PrjctMgr"/>
                    <FieldRef Name="Modified"/>
                </ViewFields>
                <RowLimit Paged="TRUE">100</RowLimit>
                <Aggregations Value="Off"/>
                <XslLink Default="TRUE">main.xsl</XslLink>
                <Toolbar Type="Standard"/>
            </View>
        </XmlDefinition>
</WebPartPages:XsltListViewWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
<style type="text/css">
.ms-bodyareaframe {
    padding: 0px;
}
</style>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
  <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
</asp:Content>

August 7th, 2013 3:59am

Thank you! yes this works:For the column you want to increase the width first select the webpart in the designer then click on design  menu and then click on Customize XSLT > Customize Entire View.

Also  add the below codes so that your width get increased:

<th scope="col" onmouseover="OnChildColumn(this)" style ="width: 200px; overflow:auto; white-space:normal;min-width:200px">

<td style="width:200px; overflow:auto; white-space:normal;min-width: 200px">

For example:

<xsl:template name="FieldRef_header.Status" ddwrt:dvt_mode="header" match="FieldRef[@Name='Status']" mode="header" ddwrt:ghost="hide">
    <th scope="col" onmouseover="OnChildColumn(this)" style ="width: 350px; overflow:auto; white-space:normal;min-width:350px">
          <xsl:attribute name="class">
            <xsl:choose>
                  <xsl:when test="(@Type='User' or @Type='UserMulti') and ($PresenceEnabled='1')">ms-vh</xsl:when>
                  <xsl:otherwise>ms-vh2</xsl:otherwise>
 AND

        <xsl:template name="FieldRef_printTableCell_EcbAllowed.Status" match="FieldRef[@Name='Status']" mode="printTableCellEcbAllowed" ddwrt:dvt_mode="body" ddwrt:ghost="hide">
                <xsl:param name="thisNode" select="."/>
                <xsl:param name="class" />
    <td style="width:350px; overflow:auto; white-space:normal;min-width: 350px">
          <xsl:if test="@ClassInfo='Menu' or @ListItemMenu='TRUE'">
            <xsl:attribute name="height">100%</xsl:attribute>
            <xsl:attribute name="onmouseover">OnChildItem(this)</xsl:attribute>

Free Windows Admin Tool Kit Click here and download it now
August 7th, 2013 5:09am

Does this solution work for SharePoint designer 2013. If yes, I do not see design view....could anyone of you provide steps to do the same task, i.e., increasing the width of the column for SharePoint 2013 list.
October 15th, 2013 6:53pm

So, this is all I can se, no td or col tags:

<%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document"  %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> -
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
</asp:content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
<SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
<SharePoint:ModifySettingsLink runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=23" width='6' height='1' alt="" /></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
        <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
        <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="True" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" NoDefaultStyle="" ViewGuid="{EDC9E134-B1DF-4ECA-9727-83EAE4FD3DE2}" EnableOriginalValue="False" DisplayName="All Items" ViewContentTypeId="" Default="TRUE" ListUrl="" ListDisplayName="" ListName="{096CBD63-BE49-4678-A0CC-4763D9F2C7D1}" ListId="096cbd63-be49-4678-a0cc-4763d9f2c7d1" PageType="PAGE_DEFAULTVIEW" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="Risks" FrameType="Default" SuppressWebPartChrome="False" Description="Use the Risks list to manage a set of risks related to this project. You can assign, prioritize, and follow the progress of risks from start to finish." IsIncluded="True" ZoneID="Main" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" TitleUrl="/pwa/B3-Core/Lists/Risks" DetailLink="/pwa/B3-Core/Lists/Risks" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_edc9e134_b1df_4eca_9727_83eae4fd3de2" __MarkupType="vsattributemarkup" __WebPartId="{EDC9E134-B1DF-4ECA-9727-83EAE4FD3DE2}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings>
  <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
            <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
            <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
            <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
            <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
            <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
            <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
            <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" /> <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
           <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(core,noXinviewofY_DEFAULT)" />
           <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
           <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" /></ParameterBindings>
<DataFields>
</DataFields>
<XmlDefinition>
<View Name="{EDC9E134-B1DF-4ECA-9727-83EAE4FD3DE2}" DefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/pwa/B3-Core/Lists/Risks/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/pwsrisks.png?rev=23" ><Query><OrderBy><FieldRef Name="ID"/></OrderBy></Query><ViewFields><FieldRef Name="Risk_x0020_No_x002e_"/><FieldRef Name="LinkTitle"/><FieldRef Name="Category"/><FieldRef Name="Team"/><FieldRef Name="Priority"/><FieldRef Name="Status"/><FieldRef Name="Description"/><FieldRef Name="AssignedTo"/><FieldRef Name="DueDate"/><FieldRef Name="Created_x0020_By_x0020__x002a_"/><FieldRef Name="Created_x0020_On_x0020__x002a_"/><FieldRef Name="Likelihood"/><FieldRef Name="B3_x0020_Impact"/><FieldRef Name="Phase_x0020__x002a_"/><FieldRef Name="Severity_x0020__x002a_"/><FieldRef Name="Response"/><FieldRef Name="Response_x0020_Plan"/><FieldRef Name="Contingency_x0020_plan"/><FieldRef Name="Closure_x0020_Date_x0020__x002a_"/><FieldRef Name="Source_x0020__x002d__x0020_CMMI"/><FieldRef Name="Identified_x0020_On_x0020__x002a"/><FieldRef Name="Workflow_x0020__x002a_"/><FieldRef Name="Most_x0020_Recent_x0020_Note_x00"/><FieldRef Name="Escalation_x0020_Level_x0020__x0"/><FieldRef Name="Last_x0020_Updated_x0020__x002a_"/></ViewFields><RowLimit Paged="TRUE">30</RowLimit><Aggregations Value="Off"/><JSLink>clienttemplates.js</JSLink><XslLink>main.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition>
</WebPartPages:XsltListViewWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
  <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
  <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
</asp:Content>

Free Windows Admin Tool Kit Click here and download it now
January 20th, 2014 10:09pm

Hello Dhiraj,

This solution worked for increasing the size. Now I want to reduce the width of a column. My column title is too long. This column only contains a single digit number. How can I wrap the title so that it takes up less space?

Thanks

Farida

March 17th, 2014 11:27am

You can use JavaScript with CSS selectors to find the column you want and replace spaces in its text with <br/> line breaks. You don't even need SharePoint Designer for this, if you're willing to use a little JavaScript.

In the browser, edit the page and add a content editor web part to the bottom, then add some JavaScript like the following:

<script>
/* JavaScript to insert line breaks into columns based on their display names */
if(document.querySelector){
	var targetColumns = ["Big Column","Long Column","Stupid Column"];
	for(var i = 0; i < targetColumns.length; i++){
		var colHeading = document.querySelector("[DisplayName='"+targetColumns[i]+"']");
		if(colHeading != null){
			colHeading.innerHTML = colHeading.innerHTML.replace(targetColumns[i],targetColumns[i].replace(" ","<br/>") );
		}
	}
}
</script>

The above code will find elements on the page with DisplayName attributes that equals "Big Column", "Long Column", or "Stupid Column" and replace their first spaces with linebreaks.
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2014 2:58pm

I've seen a few suggestions to go to the design view to do this, but in SharePoint Designer 2013, there is no design view. So how are you solving this problem?
May 21st, 2014 12:47pm

  1. Go to the SharePoint list, go to List
  2. Click on Edit list in SharePoint designer


3. Go to the view where you want the columns width to be increased.

4. Move cursor downwards in the code and stop when the List view tools tab gets enabled.

5. Go to Design and click on Customize XSLT, there click on customize entire view.

6. You can see that now entire codes will be visible.

7. For example I want to increase the width of column status. I find status in the code and stop when I see the following set of code:

<xsl:template name="FieldRef_header.Description" ddwrt:dvt_mode="header" match="FieldRef[@Name='Description']" mode="header" ddwrt:ghost="hide">

    <th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

      <xsl:attribute name="class">

8. Now, I change the code:

<th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

To

<th scope="col" onmouseover="OnChildColumn(this)" style ="width: 350px; white-space:normal;min-width:350px">

Regards,

SAN

 


Free Windows Admin Tool Kit Click here and download it now
November 4th, 2014 8:53am

  1. Go to the SharePoint list, go to List
  2. Click on Edit list in SharePoint designer

3. Go to the view where you want the columns width to be increased.

4. Move cursor downwards in the code and stop when the List view tools tab gets enabled.

5. Go to Design and click on Customize XSLT, there click on customize entire view.

6. You can see that now entire codes will be visible.

7. For example I want to increase the width of column status. I find status in the code and stop when I see the following set of code:

<xsl:template name="FieldRef_header.Description" ddwrt:dvt_mode="header" match="FieldRef[@Name='Description']" mode="header" ddwrt:ghost="hide">

    <th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

      <xsl:attribute name="class">

8. Now, I change the code:

<th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

To

<th scope="col" onmouseover="OnChildColumn(this)" style ="width: 350px; white-space:normal;min-width:350px">

Regards,

SAN

November 4th, 2014 8:56am

Latest method, easy and simple to increase the width of column in SharePoint:

  1. Go to the SharePoint list, go to List
  2. Click on Edit list in SharePoint designer

3. Go to the view where you want the columns width to be increased.

4. Move cursor downwards in the code and stop when the List view tools tab gets enabled.

5. Go to Design and click on Customize XSLT, there click on customize entire view.

6. You can see that now entire codes will be visible.

7. For example I want to increase the width of column status. I find status in the code and stop when I see the following set of code:

<xsl:template name="FieldRef_header.Description" ddwrt:dvt_mode="header" match="FieldRef[@Name='Description']" mode="header" ddwrt:ghost="hide">

    <th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

      <xsl:attribute name="class">

8. Now, I change the code:

<th nowrap="nowrap" scope="col" onmouseover="OnChildColumn(this)">

To

<th scope="col" onmouseover="OnChildColumn(this)" style ="width: 350px; white-space:normal;min-width:350px">

Regards,

SAN

Free Windows Admin Tool Kit Click here and download it now
November 4th, 2014 9:01am

With Office 365 and SharePoint 2013 (online) doing this in SharePoint designer doesn't work because the XLST code doesn't all display in the code view. Rather, all the critical design elements are referenced to code and style pages in catalogs I can't access (for example the _Layouts) directory.

When I add style tags to modify the CSS governing the page (such as changing column heading titles to a larger font) the CSS is always ignored-- even if I introduce it in a script editor webpart.

February 17th, 2015 5:01pm

Further, why do MS programmers provide all the mostly-useless types of customization in the list web part editor (see list below) but not give an option to boldface or change the color of the column heads, darken the alternate row color, allow for subtle gridlines in the table, etc. !! They have made basic customization difficult even for experienced SP programmers.

---------------------- SharePoint List  Web Part Editor Menu choices
Edit the current view
Toolbar Type

Collapse category: Appearance   Appearance
Title
 
Height
Should the Web Part have a fixed height?
Yes  
No. Adjust height to fit zone.
Width
Should the Web Part have a fixed width?
Yes  
No. Adjust width to fit zone.
Chrome State
Minimized
Normal
Chrome Type

 Collapse category: Layout   Layout
  Hidden
Direction

Zone

Zone Index

 Collapse category: Advanced   Advanced
  Allow Minimize
  Allow Close
  Allow Hide
  Allow Zone Change
  Allow Connections
  Allow Editing in Personal View
Title URL
 
Description
 
Help URL
 
Help Mode

Catalog Icon Image URL
 
Title Icon Image URL
 
Import Error Message
 
Target Audiences
Check Names Browse
 Collapse category: AJAX Options   AJAX Options
  Enable Asynchronous Load
  Enable Asynchronous Update
  Show Manual Refresh Button
  Enable Asynchronous Automatic Refresh
Automatic Refreshing Interval (seconds)

 Collapse category: Miscellaneous   Miscellaneous
Sample Data
 
XSL Link
 
  Enable Data View Caching
Data View Caching Time-out (seconds)

  Send first row to connected Web Parts when page loads
  Server Render
  Disable view selector menu
  Disable 'Save This View' button
  Display search box
JS Link

Free Windows Admin Tool Kit Click here and download it now
February 17th, 2015 5:11pm

You can use List Booster from Sharepointalist to change widths, font styles, alignment colors and more in SharePoint lists and document libraries - check it out at http://www.spbooster.com

It supports both SharePoint 2013 and SharePoint Online.


  • Edited by Mout1 11 hours 6 minutes ago
July 9th, 2015 4:36pm

You can use List Booster from Sharepointalist to change widths, font styles, alignment colors and more in SharePoint lists and document libraries - check it out at http://www.spbooster.com

It supports both SharePoint 2013 and SharePoint Online.


  • Edited by Mout1 Thursday, July 09, 2015 8:34 PM
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2015 8:33pm

Tank you San

it worked perfectly

I had some trouble finding the "list view tools" menu, but used the link below, and that did the trick.

http://mdmazzotti.blogspot.dk/2014/04/list-view-tools-tab-missing-sharepoint-designer-2013.html

July 31st, 2015 3:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics